diff options
| author | Henry <mail@henrygressmann.de> | 2026-09-14 11:14:37 +0200 |
|---|---|---|
| committer | Henry <mail@henrygressmann.de> | 2026-09-14 11:14:37 +0200 |
| commit | 70b4ca7b8effb5b8f61c7a43ea15a77af0db0103 (patch) | |
| tree | 747c29744b3afa3512c99ce17511dfffdb092506 /crates | |
| parent | 437a77c8d9e9286a7ca7993b6c8b85e7feb6ebdd (diff) | |
chore: update changelog, fix clippy issues
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/tinywasm/Cargo.toml | 2 | ||||
| -rw-r--r-- | crates/types/src/archive.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/tinywasm/Cargo.toml b/crates/tinywasm/Cargo.toml index 15744a3..d59d3dd 100644 --- a/crates/tinywasm/Cargo.toml +++ b/crates/tinywasm/Cargo.toml @@ -90,7 +90,7 @@ wat.workspace = true [features] default = ["full", "std"] -full = ["archive", "parallel-parser", "parser", "validate"] +full = ["archive", "debug", "parallel-parser", "parser", "validate"] log = ["dep:log", "tinywasm-parser?/log"] std = ["tinywasm-parser?/std", "tinywasm-types/std"] diff --git a/crates/types/src/archive.rs b/crates/types/src/archive.rs index bdce379..6a03605 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"06"; +const TWASM_VERSION: &[u8; 2] = b"05"; fn validate_magic(wasm: &[u8]) -> Result<usize, TwasmError> { if wasm.len() < TWASM_MAGIC.len() || &wasm[..TWASM_MAGIC_PREFIX.len()] != TWASM_MAGIC_PREFIX { @@ -97,7 +97,7 @@ mod tests { let module = Module::from(ModuleInner { funcs: Box::new([Shared::new(function)]), ..ModuleInner::default() }); let archive = module.serialize_twasm().expect("serialize archive"); - assert_eq!(&archive[..6], b"TWAS06"); + assert_eq!(&archive[..6], b"TWAS05"); let decoded = Module::try_from_twasm(&archive).expect("deserialize archive"); let function = &decoded.funcs[0]; |
