Update to Cranelift 0.28.0.
Also region 2.0.0 and bindgen 0.47.1.
This commit is contained in:
@@ -8,6 +8,7 @@ use cranelift_wasm::{
|
||||
GlobalIndex, Memory, MemoryIndex, SignatureIndex, Table, TableIndex,
|
||||
};
|
||||
use indexmap::IndexMap;
|
||||
use std::boxed::Box;
|
||||
use std::string::String;
|
||||
use std::vec::Vec;
|
||||
|
||||
@@ -21,7 +22,7 @@ pub struct TableElements {
|
||||
/// The offset to add to the base.
|
||||
pub offset: usize,
|
||||
/// The values to write into the table elements.
|
||||
pub elements: Vec<FuncIndex>,
|
||||
pub elements: Box<[FuncIndex]>,
|
||||
}
|
||||
|
||||
/// An entity to export.
|
||||
|
||||
@@ -153,7 +153,7 @@ impl<'data> cranelift_wasm::ModuleEnvironment<'data> for ModuleEnvironment<'data
|
||||
table_index,
|
||||
base,
|
||||
offset,
|
||||
elements: elements.to_vec(),
|
||||
elements,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user