diff --git a/CHANGELOG.md b/CHANGELOG.md index 82fb7638..3b514e51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,16 +4,31 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## [Unreleased] -### Changed +## [0.0.96] -- Upgrade wasmer to 5.x +### Changed +- Bumped wasmer version to 5.x - **BREAKING CHANGE** The `wasmer_sys` feature has been renamed to `wasmer_sys_dev` +- The error variant `WasmErrorInner::Compile` has been renamed to `WasmErrorInner::ModuleBuild` to clarify that the error is related to constructing a wasmer `Module`. Only with the feature flags `wasmer_sys_dev` or `wasmer_sys_prod`, is this when wasm compilation occurs. On the feature flag `wasmer_wamr`, wasms are interpreted and thus no compilation occurs. ### Added - A new feature flag, `wasmer_sys_prod` which enables the Wasmer LLVM compiler. The default, with the `wasmer_sys_dev` feature is the Cranelift compiler. The Cranelift compiler is fast, and recommended for development, but the LLVM compiler is supposed to be faster and more optimized for production. In testing so far, the compile step is slower with LLVM but the runtime is faster. More testing is needed yet to confirm the difference. +- A new public function `build_module`, which builds a wasmer Module directly, bypassing the `ModuleCache`. It is only implemented for the feature flag `wasmer_wamr`. On the feature flags `wasmer_sys_dev` and `wasmer_sys_prod` it will panic as unimplemented. This enforces the use of the `ModuleCache` when wasmer is used in a compiled mode, and allows bypassing the cache when wasmer is used in interpreter mode as caching is not relevant. + +## [0.0.95] - 2024-08-28 + +### Changed +- Bumped holochain_serialized_bytes version +- Bumped wasmer version + +## [0.0.94] - 2024-05-21 + +### Changed +- Fixed memory deallocation for rust 1.78 +- Bump Criterion version ## [0.0.93] - 2024-04-24 diff --git a/Cargo.lock b/Cargo.lock index 6aacb95b..be4762e4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -842,7 +842,7 @@ dependencies = [ [[package]] name = "holochain_wasmer_common" -version = "0.0.96" +version = "0.0.97" dependencies = [ "holochain_serialized_bytes", "holochain_wasmer_common", @@ -854,7 +854,7 @@ dependencies = [ [[package]] name = "holochain_wasmer_host" -version = "0.0.96" +version = "0.0.97" dependencies = [ "bimap", "bytes", diff --git a/crates/common/Cargo.toml b/crates/common/Cargo.toml index 1b9dc372..0e920a5f 100644 --- a/crates/common/Cargo.toml +++ b/crates/common/Cargo.toml @@ -2,7 +2,7 @@ name = "holochain_wasmer_common" description = "commons for both host and guest" license = "Apache-2.0" -version = "0.0.96" +version = "0.0.97" authors = ["thedavidmeister", "thedavidmeister@gmail.com"] edition = "2021" diff --git a/crates/guest/Cargo.lock b/crates/guest/Cargo.lock index 8911d5c4..ea59d294 100644 --- a/crates/guest/Cargo.lock +++ b/crates/guest/Cargo.lock @@ -207,7 +207,7 @@ dependencies = [ [[package]] name = "holochain_wasmer_common" -version = "0.0.96" +version = "0.0.97" dependencies = [ "holochain_serialized_bytes", "serde", @@ -218,7 +218,7 @@ dependencies = [ [[package]] name = "holochain_wasmer_guest" -version = "0.0.96" +version = "0.0.97" dependencies = [ "holochain_serialized_bytes", "holochain_wasmer_common", diff --git a/crates/guest/Cargo.toml b/crates/guest/Cargo.toml index 025e8005..5d346a8d 100644 --- a/crates/guest/Cargo.toml +++ b/crates/guest/Cargo.toml @@ -2,7 +2,7 @@ name = "holochain_wasmer_guest" description = "wasm guest code" license = "Apache-2.0" -version = "0.0.96" +version = "0.0.97" authors = ["thedavidmeister", "thedavidmeister@gmail.com"] edition = "2021" @@ -15,11 +15,11 @@ path = "src/guest.rs" [dependencies] holochain_serialized_bytes = "=0.0.55" -holochain_wasmer_common = { version = "=0.0.96", path = "../common" } +holochain_wasmer_common = { version = "=0.0.97", path = "../common" } serde = "1" tracing = "0.1" paste = "1.0" [dev-dependencies] -holochain_wasmer_common = { version = "=0.0.96", path = "../common", features = ["fuzzing"] } +holochain_wasmer_common = { version = "=0.0.97", path = "../common", features = ["fuzzing"] } test-fuzz = "6.0.0" diff --git a/crates/host/Cargo.toml b/crates/host/Cargo.toml index 7cc140ea..c3dd311f 100644 --- a/crates/host/Cargo.toml +++ b/crates/host/Cargo.toml @@ -2,7 +2,7 @@ name = "holochain_wasmer_host" description = "wasm host code" license = "Apache-2.0" -version = "0.0.96" +version = "0.0.97" authors = ["thedavidmeister", "thedavidmeister@gmail.com"] edition = "2021" @@ -10,7 +10,7 @@ edition = "2021" wasmer = { version = "5.0.2", default-features = false } wasmer-middlewares = { version = "5.0.2", optional = true } -holochain_wasmer_common = { version = "=0.0.96", path = "../common" } +holochain_wasmer_common = { version = "=0.0.97", path = "../common" } holochain_serialized_bytes = "=0.0.55" serde = "1" tracing = "0.1" diff --git a/test/Cargo.lock b/test/Cargo.lock index 8356c5cf..719865a8 100644 --- a/test/Cargo.lock +++ b/test/Cargo.lock @@ -1013,7 +1013,7 @@ dependencies = [ [[package]] name = "holochain_wasmer_common" -version = "0.0.96" +version = "0.0.97" dependencies = [ "holochain_serialized_bytes", "serde", @@ -1023,7 +1023,7 @@ dependencies = [ [[package]] name = "holochain_wasmer_host" -version = "0.0.96" +version = "0.0.97" dependencies = [ "bimap", "bytes", diff --git a/test/test_wasm/Cargo.lock b/test/test_wasm/Cargo.lock index 5dffba56..07758a2d 100644 --- a/test/test_wasm/Cargo.lock +++ b/test/test_wasm/Cargo.lock @@ -53,7 +53,7 @@ dependencies = [ [[package]] name = "holochain_wasmer_common" -version = "0.0.96" +version = "0.0.97" dependencies = [ "holochain_serialized_bytes", "serde", @@ -63,7 +63,7 @@ dependencies = [ [[package]] name = "holochain_wasmer_guest" -version = "0.0.96" +version = "0.0.97" dependencies = [ "holochain_serialized_bytes", "holochain_wasmer_common", diff --git a/test/wasm_empty/Cargo.lock b/test/wasm_empty/Cargo.lock index 3ff325ca..0a8cba4a 100644 --- a/test/wasm_empty/Cargo.lock +++ b/test/wasm_empty/Cargo.lock @@ -59,7 +59,7 @@ dependencies = [ [[package]] name = "holochain_wasmer_common" -version = "0.0.96" +version = "0.0.97" dependencies = [ "holochain_serialized_bytes", "serde", @@ -69,7 +69,7 @@ dependencies = [ [[package]] name = "holochain_wasmer_guest" -version = "0.0.96" +version = "0.0.97" dependencies = [ "holochain_serialized_bytes", "holochain_wasmer_common", diff --git a/test/wasm_io/Cargo.lock b/test/wasm_io/Cargo.lock index 4c32f90e..df672e4f 100644 --- a/test/wasm_io/Cargo.lock +++ b/test/wasm_io/Cargo.lock @@ -53,7 +53,7 @@ dependencies = [ [[package]] name = "holochain_wasmer_common" -version = "0.0.96" +version = "0.0.97" dependencies = [ "holochain_serialized_bytes", "serde", @@ -63,7 +63,7 @@ dependencies = [ [[package]] name = "holochain_wasmer_guest" -version = "0.0.96" +version = "0.0.97" dependencies = [ "holochain_serialized_bytes", "holochain_wasmer_common", diff --git a/test/wasm_memory/Cargo.lock b/test/wasm_memory/Cargo.lock index bfc68528..68fb3409 100644 --- a/test/wasm_memory/Cargo.lock +++ b/test/wasm_memory/Cargo.lock @@ -53,7 +53,7 @@ dependencies = [ [[package]] name = "holochain_wasmer_common" -version = "0.0.96" +version = "0.0.97" dependencies = [ "holochain_serialized_bytes", "serde", @@ -63,7 +63,7 @@ dependencies = [ [[package]] name = "holochain_wasmer_guest" -version = "0.0.96" +version = "0.0.97" dependencies = [ "holochain_serialized_bytes", "holochain_wasmer_common",