summaryrefslogtreecommitdiff
path: root/crates/parser/src/lib.rs
diff options
context:
space:
mode:
authorHenry <mail@henrygressmann.de>2026-08-25 18:05:11 +0200
committerHenry <mail@henrygressmann.de>2026-08-25 18:06:47 +0200
commite5f234b1604511d0463252ee173caee6e9cd18f4 (patch)
tree6bd77faa802b052a206851e69b4a60f393176572 /crates/parser/src/lib.rs
parent11052c6c2092db3388e33286ddba0f110b070bee (diff)
feat: add support for portable-atomic, add send feature
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'crates/parser/src/lib.rs')
-rw-r--r--crates/parser/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/parser/src/lib.rs b/crates/parser/src/lib.rs
index 262cc07..3369f7b 100644
--- a/crates/parser/src/lib.rs
+++ b/crates/parser/src/lib.rs
@@ -292,7 +292,8 @@ impl Parser {
}
let section_end = buffer_offset + section_size;
- let section_bytes = alloc::sync::Arc::<[u8]>::from(buffer[buffer_offset..section_end].to_vec());
+ let section_bytes =
+ tinywasm_types::Shared::<[u8]>::from(buffer[buffer_offset..section_end].to_vec());
reader.queue_owned_code_section(count, parser.offset(), section_bytes, validator.as_mut())?;
parser.skip_section();
buffer_offset = section_end;