summaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorHenry <mail@henrygressmann.de>2026-04-12 21:16:49 +0200
committerHenry <mail@henrygressmann.de>2026-04-12 21:16:49 +0200
commit80cf746b50513af77203f382f5f53bd036087358 (patch)
treea9493ec0a69caba0dd82e568b6556340be306e0a /CHANGELOG.md
parentd89729df921d39f81fe8a43990678853deb1edde (diff)
feat: remove lifetimes from runtime objects
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md18
1 files changed, 11 insertions, 7 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8a6b138..42b2220 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -21,12 +21,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `engine::FuelPolicy` and `engine::Config::fuel_policy` for fuel accounting behavior
- New `canonicalize_nans` feature flag to enable canonicalizing NaN values in the `f32`, `f64`, and `v128` types
- Public API rework for runtime object access:
- - export lookups: `func`, `func_typed`, `memory`, `memory_mut`
- - table/global access: `table`, `table_mut`, `global`, `global_mut`, `global_get`, `global_set`
- - generic export access: `extern_item`, `extern_item_mut`
+ - export lookups: `func_untyped`/`func`, `memory`, `table`, `global`
+ - table/global value access: `global_get`, `global_set`
+ - generic export access: `extern_item` and `ExternItem`
- export iteration: `ModuleInstance::exports`
- module descriptors: `Module::imports`, `Module::exports`
- - raw memory data access: `MemoryRef::data`/`data_size`, `MemoryRefMut::data`/`data_mut`/`data_size`
+ - handle-based runtime objects with explicit store access: `Memory`, `Table`, `Global`, `Function`
### Changed
@@ -50,10 +50,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Increased MSRV to 1.90
- `Error::ParseError` was renamed to `Error::Parser`, and `Error::Twasm` was added
- `ModuleInstance` export lookup APIs were renamed:
- - `exported_func_untyped` -> `func`
- - `exported_func` -> `func_typed`
+ - `exported_func_untyped` -> `func_untyped`
+ - `exported_func` -> `func`
- `exported_memory` -> `memory`
- - `exported_memory_mut` -> `memory_mut`
+- `ModuleInstance` mutable export lookup variants were removed:
+ - `memory_mut`, `table_mut`, `global_mut`
+ - `extern_item_mut`
+- `FuncHandle` / `FuncHandleTyped` were renamed to `Function` / `FunctionTyped`
+- `HostFunction::new` / `HostFunction::func` / `HostFunction::typed` now require `&mut Store`
- `Imports::link_module` now takes a `ModuleInstance` instead of a raw module instance id
- `func_typed` now validates the exact wasm signature at lookup time and fails immediately on mismatches