diff --git a/CHANGELOG.md b/CHANGELOG.md index ddc28c43f5..4d74fb6529 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,26 @@ Additionally we have an `Internal` section for changes that are of interest to d Dates in this file are formattes as `YYYY-MM-DD`. +## [`0.36.0`] - 2024-07-24 + +### Added + +- Added support for the official Wasm C-API. (https://github.com/wasmi-labs/wasmi/pull/1009) + - This allows to use Wasmi from any program that can interface with C code. + - The `wasmi_c_api_impl` crate allows to use Wasmi via the Wasm C-API from Rust code. +- Added `Instance::new` API. (https://github.com/wasmi-labs/wasmi/pull/1134) + - This was mainly needed to support the Wasm C-API. + - The new API offers a more low-level way for Wasm module instantiation + that may be more efficient for certain use cases. +- Added `Clone` implementation for `Module`. (https://github.com/wasmi-labs/wasmi/pull/1130) + - This was mainly needed to support the Wasm C-API. + +### Changed + +- The store fuel API now returns `Error` instead of `FuelError`. (https://github.com/wasmi-labs/wasmi/pull/1131) + - This was needed to support the Wasm C-API. + - The `FuelError` is still accessible via the `Error::kind` method. + ## [`0.35.0`] - 2024-07-11 ### Fixed diff --git a/Cargo.lock b/Cargo.lock index 5a5c10eef4..31422f4506 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1840,7 +1840,7 @@ dependencies = [ [[package]] name = "wasmi" -version = "0.35.0" +version = "0.36.0" dependencies = [ "anyhow", "arrayvec", @@ -1852,7 +1852,7 @@ dependencies = [ "smallvec", "spin", "wasmi_collections", - "wasmi_core 0.35.0", + "wasmi_core 0.36.0", "wasmparser-nostd", "wast 70.0.2", "wat", @@ -1866,22 +1866,22 @@ checksum = "104a7f73be44570cac297b3035d76b169d6599637631cf37a1703326a0727073" [[package]] name = "wasmi_c_api" -version = "0.35.0" +version = "0.36.0" dependencies = [ "wasmi_c_api_impl", ] [[package]] name = "wasmi_c_api_impl" -version = "0.35.0" +version = "0.36.0" dependencies = [ - "wasmi 0.35.0", + "wasmi 0.36.0", "wasmi_c_api_macros", ] [[package]] name = "wasmi_c_api_macros" -version = "0.35.0" +version = "0.36.0" dependencies = [ "proc-macro2", "quote", @@ -1889,19 +1889,19 @@ dependencies = [ [[package]] name = "wasmi_cli" -version = "0.35.0" +version = "0.36.0" dependencies = [ "anyhow", "assert_cmd", "clap", - "wasmi 0.35.0", + "wasmi 0.36.0", "wasmi_wasi", "wat", ] [[package]] name = "wasmi_collections" -version = "0.35.0" +version = "0.36.0" dependencies = [ "ahash", "hashbrown 0.14.5", @@ -1922,7 +1922,7 @@ dependencies = [ [[package]] name = "wasmi_core" -version = "0.35.0" +version = "0.36.0" dependencies = [ "downcast-rs", "libm", @@ -1939,17 +1939,17 @@ dependencies = [ "libfuzzer-sys", "wasm-smith", "wasmi 0.31.2", - "wasmi 0.35.0", + "wasmi 0.36.0", "wasmtime", ] [[package]] name = "wasmi_wasi" -version = "0.35.0" +version = "0.36.0" dependencies = [ "wasi-cap-std-sync", "wasi-common", - "wasmi 0.35.0", + "wasmi 0.36.0", "wat", "wiggle", ] diff --git a/Cargo.toml b/Cargo.toml index 63a5e1c25d..dfa31e798c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ resolver = "2" [workspace.package] authors = ["Robin Freyler "] repository = "https://github.com/wasmi-labs/wasmi" -version = "0.35.0" +version = "0.36.0" rust-version = "1.77" edition = "2021" readme = "README.md" @@ -25,12 +25,12 @@ categories = ["wasm", "no-std", "virtualization"] exclude = ["tests"] [workspace.dependencies] -wasmi = { version = "0.35.0", path = "crates/wasmi", default-features = false } -wasmi_wasi = { version = "0.35.0", path = "crates/wasi", default-features = false } -wasmi_core = { version = "0.35.0", path = "crates/core", default-features = false } -wasmi_collections = { version = "0.35.0", path = "crates/collections", default-features = false } -wasmi_c_api_impl = { version = "0.35.0", path = "crates/c_api" } -wasmi_c_api_macros = { version = "0.35.0", path = "crates/c_api/macro" } +wasmi = { version = "0.36.0", path = "crates/wasmi", default-features = false } +wasmi_wasi = { version = "0.36.0", path = "crates/wasi", default-features = false } +wasmi_core = { version = "0.36.0", path = "crates/core", default-features = false } +wasmi_collections = { version = "0.36.0", path = "crates/collections", default-features = false } +wasmi_c_api_impl = { version = "0.36.0", path = "crates/c_api" } +wasmi_c_api_macros = { version = "0.36.0", path = "crates/c_api/macro" } num-traits = { version = "0.2.8", default-features = false } [profile.bench]