summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/tinywasm/Cargo.toml2
-rw-r--r--crates/types/src/archive.rs4
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];