add missing hashbrown dependency for dynasm

This commit is contained in:
Mackenzie Clark
2019-03-24 17:30:10 -07:00
parent 4bb3fed1e6
commit 0666a5375b
3 changed files with 7 additions and 0 deletions

3
Cargo.lock generated
View File

@ -1,3 +1,5 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
[[package]]
name = "MacTypes-sys"
version = "2.1.0"
@ -2238,6 +2240,7 @@ dependencies = [
"byteorder 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
"dynasm 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
"dynasmrt 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
"hashbrown 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
"lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.50 (registry+https://github.com/rust-lang/crates.io-index)",
"nix 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@ -16,3 +16,4 @@ lazy_static = "1.2.0"
byteorder = "1"
nix = "0.13.0"
libc = "0.2.49"
hashbrown = "0.1"

View File

@ -18,6 +18,7 @@ use wasmparser::{
Import, ImportSectionEntryType, InitExpr, ModuleReader, Operator, SectionCode, Type as WpType,
WasmDecoder,
};
use hashbrown::HashMap;
#[derive(Debug)]
pub enum LoadError {
@ -95,6 +96,8 @@ pub fn read_module<
namespace_table: StringTable::new(),
name_table: StringTable::new(),
custom_sections: HashMap::new(),
};
let mut reader = ModuleReader::new(wasm)?;