mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-04 12:41:19 +00:00
Merge branch 'master' into fix/c-api-fix-imports
This commit is contained in:
commit
71d7fe7d08
@ -94,7 +94,6 @@ impl FuncResolverBuilder {
|
|||||||
info: &ModuleInfo,
|
info: &ModuleInfo,
|
||||||
) -> CompileResult<(Self, HandlerData)> {
|
) -> CompileResult<(Self, HandlerData)> {
|
||||||
let num_func_bodies = function_bodies.len();
|
let num_func_bodies = function_bodies.len();
|
||||||
let mut compiled_functions: Vec<(Vec<u8>, RelocSink)> = Vec::with_capacity(num_func_bodies);
|
|
||||||
let mut local_relocs = Map::with_capacity(num_func_bodies);
|
let mut local_relocs = Map::with_capacity(num_func_bodies);
|
||||||
let mut external_relocs = Map::with_capacity(num_func_bodies);
|
let mut external_relocs = Map::with_capacity(num_func_bodies);
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ impl WasmHash {
|
|||||||
let mut state = blake2bp::State::new();
|
let mut state = blake2bp::State::new();
|
||||||
state.update(wasm);
|
state.update(wasm);
|
||||||
|
|
||||||
let mut hasher = state.finalize();
|
let hasher = state.finalize();
|
||||||
let generic_array = hasher.as_bytes();
|
let generic_array = hasher.as_bytes();
|
||||||
|
|
||||||
first_part.copy_from_slice(&generic_array[0..32]);
|
first_part.copy_from_slice(&generic_array[0..32]);
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
use crate::sys::Memory;
|
|
||||||
use crate::types::{
|
use crate::types::{
|
||||||
FuncSig, GlobalDescriptor, MemoryDescriptor, MemoryIndex, TableDescriptor, TableIndex, Type,
|
FuncSig, GlobalDescriptor, MemoryDescriptor, MemoryIndex, TableDescriptor, TableIndex, Type,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user