From 1d754813f178fc92afffe43e3ab638ddfc03cb66 Mon Sep 17 00:00:00 2001 From: Henry Date: Wed, 15 Jul 2026 20:52:43 +0200 Subject: docs: update changelog Signed-off-by: Henry --- CHANGELOG.md | 10 +++++++++- crates/types/src/archive.rs | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d35f070..0b65ccc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- `instantiate` / `start` / `start_func` no longer fall back to `_start` if the module has no start section. This is technically a breaking change, but it is more consistent with the WebAssembly spec and prevents accidental execution of `_start` in wasi modules that don't have a start section. Call the `_start` function explicitly if you want to run it. +- Fixed table addressing for 64-bit tables. +- Added `validation` option to `ParserConfig` to enable/disable wasmparser validation. + +### Breaking Changes + +- `instantiate` / `start` / `start_func` no longer fall back to `_start` if the module has no start section. Call the `_start` function explicitly if you want to run it. +- Removed the parser's `optimize_remove_nop` option and accessors. +- Changed public `Instruction` variants and the `.twasm` format. Existing archives must be regenerated. +- `TableType` limits now use `u64`. Use `TableType::new` or `TableType::new64` instead of struct literals. ## [0.9.1] - 2026-06-29 diff --git a/crates/types/src/archive.rs b/crates/types/src/archive.rs index 5a6f94b..48dc53f 100644 --- a/crates/types/src/archive.rs +++ b/crates/types/src/archive.rs @@ -7,7 +7,7 @@ use crate::Module; #[rustfmt::skip] const TWASM_MAGIC: [u8; 16] = [ TWASM_MAGIC_PREFIX[0], TWASM_MAGIC_PREFIX[1], TWASM_MAGIC_PREFIX[2], TWASM_MAGIC_PREFIX[3], TWASM_VERSION[0], TWASM_VERSION[1], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; const TWASM_MAGIC_PREFIX: &[u8; 4] = b"TWAS"; -const TWASM_VERSION: &[u8; 2] = b"03"; +const TWASM_VERSION: &[u8; 2] = b"04"; fn validate_magic(wasm: &[u8]) -> Result { if wasm.len() < TWASM_MAGIC.len() || &wasm[..TWASM_MAGIC_PREFIX.len()] != TWASM_MAGIC_PREFIX { -- cgit v1.3.1