From 2c480bc544dbb0a1267abdf2971777b7cac702ee Mon Sep 17 00:00:00 2001 From: apodxx Date: Tue, 26 Dec 2023 07:02:13 +0000 Subject: [PATCH 1/2] update Cargo.toml. Signed-off-by: apodxx --- Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c92a4a1..75e14ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,9 +13,9 @@ anyhow = "1.0.44" tracing = "0.1" tracing-subscriber = {version = "0.3.14", features = ["env-filter"] } semver = "^1.0" -wasmtime = "0.30.0" -wasmtime-wasi = { version= "0.30.0", features = ["tokio"]} -wasi-common = "0.30.0" +wasmtime = "2.0.1" +wasmtime-wasi = { version= "2.0.1", features = ["tokio"]} +wasi-common = "2.0.1" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" serde_derive = "1.0" -- Gitee From 1a8ae103381e28fd7e12e334b89ade4fa8f337e2 Mon Sep 17 00:00:00 2001 From: apodxx Date: Tue, 26 Dec 2023 07:02:52 +0000 Subject: [PATCH 2/2] update src/wrapper/wasmtime_runtime.rs. Signed-off-by: apodxx --- src/wrapper/wasmtime_runtime.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wrapper/wasmtime_runtime.rs b/src/wrapper/wasmtime_runtime.rs index 6d5e9cc..9c83b4d 100644 --- a/src/wrapper/wasmtime_runtime.rs +++ b/src/wrapper/wasmtime_runtime.rs @@ -28,9 +28,8 @@ impl WasmtimeRuntime { .wasm_bulk_memory(true) .wasm_multi_value(true) .wasm_multi_memory(true) - .wasm_module_linking(false) // Disable profiler - .profiler(ProfilingStrategy::None)? + .profiler(ProfilingStrategy::None) .cranelift_opt_level(OptLevel::SpeedAndSize) // Allocate resources on demand because we can't predict how many instances will exist .allocation_strategy(InstanceAllocationStrategy::OnDemand) -- Gitee