From f22791460ad330f16731ec6e7872d8cb770c53b2 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Mon, 29 Jun 2026 17:38:20 -0700 Subject: [PATCH 1/2] Fix isues --- Cargo.standalone.toml | 6 +++--- Cargo.toml | 6 +++--- src/cli.rs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.standalone.toml b/Cargo.standalone.toml index e07230b..fb747c2 100644 --- a/Cargo.standalone.toml +++ b/Cargo.standalone.toml @@ -11,8 +11,8 @@ cli = [ "dep:wasmer-wasix", "dep:wasmer-cache", "dep:wasmer-compiler-llvm", - "dep:wasmer_c_api", - "wasmer_c_api/llvm", + "dep:wasmer-c-api-imports", + "wasmer-c-api-imports/llvm", "dep:tokio", "dep:virtual-fs", "dep:wasmer-types", @@ -27,7 +27,7 @@ wasmer = { version = "=7.1.0" } # This dependencies are ONLY needed for testing napi in Wasm locally wasmer-cache = { version = "=7.2.0-rc.1", optional = true } -wasmer_c_api = { version = "=7.2.0-rc.1", optional = true, default-features = false, package = "wasmer-c-api" } +wasmer-c-api-imports = { version = "=7.2.0-rc.1", optional = true, default-features = false } wasmer-compiler-llvm = { version = "=7.2.0-rc.1", optional = true } wasmer-types = { version = "=7.2.0-rc.1", optional = true } wasmer-wasix = { version = "=0.702.0-rc.1", optional = true } diff --git a/Cargo.toml b/Cargo.toml index 879dcd1..99bfb6f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,8 +11,8 @@ cli = [ "dep:wasmer-wasix", "dep:wasmer-cache", "dep:wasmer-compiler-llvm", - "dep:wasmer_c_api", - "wasmer_c_api/llvm", + "dep:wasmer-c-api-imports", + "wasmer-c-api-imports/llvm", "dep:tokio", "dep:virtual-fs", "dep:wasmer-types", @@ -31,7 +31,7 @@ wasmer = { version = "=7.2.0-rc.1", path = "../api" } # This dependencies are ONLY needed for testing napi in Wasm locally wasmer-cache = { version = "=7.2.0-rc.1", path = "../cache", optional = true } -wasmer_c_api = { version = "=7.2.0-rc.1", path = "../c-api", optional = true, default-features = false, package = "wasmer-c-api" } +wasmer-c-api-imports = { version = "=7.2.0-rc.1", path = "../c-api-imports", optional = true, default-features = false } wasmer-compiler-llvm = { version = "=7.2.0-rc.1", path = "../compiler-llvm", optional = true } wasmer-types = { version = "=7.2.0-rc.1", path = "../types", optional = true } wasmer-wasix = { version = "=0.702.0-rc.1", path = "../wasix", optional = true } diff --git a/src/cli.rs b/src/cli.rs index d16ac30..a32030f 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -15,7 +15,7 @@ use wasmer_wasix::{ }; use crate::{NapiCtx, guest::napi::register_env_imports}; -use wasmer_c_api::wasm_c_api::imports::WasmCapiRuntimeHooks; +use wasmer_c_api_imports::WasmCapiRuntimeHooks; #[derive(Debug, Clone)] pub struct GuestMount { From c1643738d8193fd2b98c8c6fe8a5a1594dc8b248 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Mon, 29 Jun 2026 22:35:21 -0700 Subject: [PATCH 2/2] Fixed versions to use same as main --- Cargo.standalone.toml | 16 ++++++++-------- Cargo.toml | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Cargo.standalone.toml b/Cargo.standalone.toml index 62fe7d6..3dd6b2b 100644 --- a/Cargo.standalone.toml +++ b/Cargo.standalone.toml @@ -1,6 +1,6 @@ [package] name = "wasmer-napi" -version = "0.702.0" +version = "0.702.0-rc.1" description = "NAPI library for Wasmer WebAssembly runtime" edition = "2024" license = "MIT" @@ -23,15 +23,15 @@ anyhow = "1" # Keep the standalone crates.io build on the 0.701 / 7.1 family. The vendored # manifest can track local 0.702 / 7.2 path crates, but crates.io 7.2 currently # requires rustc 1.92 while this standalone workflow is expected to run on 1.91. -wasmer = { version = "=7.2.0" } +wasmer = { version = "=7.2.0-rc.1" } # This dependencies are ONLY needed for testing napi in Wasm locally -wasmer-cache = { version = "=7.2.0", optional = true } -wasmer-c-api-imports = { version = "=7.2.0", optional = true, default-features = false } -wasmer-compiler-llvm = { version = "=7.2.0", optional = true } -wasmer-types = { version = "=7.2.0", optional = true } -wasmer-wasix = { version = "=0.702.0", optional = true } -virtual-fs = { version = "=0.702.0", optional = true } +wasmer-cache = { version = "=7.2.0-rc.1", optional = true } +wasmer-c-api-imports = { version = "=7.2.0-rc.1", optional = true, default-features = false } +wasmer-compiler-llvm = { version = "=7.2.0-rc.1", optional = true } +wasmer-types = { version = "=7.2.0-rc.1", optional = true } +wasmer-wasix = { version = "=0.702.0-rc.1", optional = true } +virtual-fs = { version = "=0.702.0-rc.1", optional = true } tokio = { version = "1", features = ["rt-multi-thread"], optional = true } enum-iterator = "2.3.0" diff --git a/Cargo.toml b/Cargo.toml index 34dbd73..99bfb6f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasmer-napi" -version = "0.702.0" +version = "0.702.0-rc.1" description = "NAPI library for Wasmer WebAssembly runtime" edition = "2024" license = "MIT" @@ -27,15 +27,15 @@ anyhow = "1" # `[patch]`, so standalone builds of this repo should use # `./cargo-standalone.sh`, which selects `Cargo.standalone.toml` when the # sibling `../api`, `../wasix`, etc. tree is not present. -wasmer = { version = "=7.2.0", path = "../api" } +wasmer = { version = "=7.2.0-rc.1", path = "../api" } # This dependencies are ONLY needed for testing napi in Wasm locally -wasmer-cache = { version = "=7.2.0", path = "../cache", optional = true } -wasmer-c-api-imports = { version = "=7.2.0", path = "../c-api-imports", optional = true, default-features = false } -wasmer-compiler-llvm = { version = "=7.2.0", path = "../compiler-llvm", optional = true } -wasmer-types = { version = "=7.2.0", path = "../types", optional = true } -wasmer-wasix = { version = "=0.702.0", path = "../wasix", optional = true } -virtual-fs = { version = "=0.702.0", path = "../virtual-fs", optional = true } +wasmer-cache = { version = "=7.2.0-rc.1", path = "../cache", optional = true } +wasmer-c-api-imports = { version = "=7.2.0-rc.1", path = "../c-api-imports", optional = true, default-features = false } +wasmer-compiler-llvm = { version = "=7.2.0-rc.1", path = "../compiler-llvm", optional = true } +wasmer-types = { version = "=7.2.0-rc.1", path = "../types", optional = true } +wasmer-wasix = { version = "=0.702.0-rc.1", path = "../wasix", optional = true } +virtual-fs = { version = "=0.702.0-rc.1", path = "../virtual-fs", optional = true } tokio = { version = "1", features = ["rt-multi-thread"], optional = true } enum-iterator = "2.3.0"