Removed explicit hashbrown dependency

This commit is contained in:
Syrus
2019-07-31 23:17:42 -07:00
parent 6245daaa84
commit a6461c3b14
22 changed files with 53 additions and 57 deletions

View File

@@ -15,7 +15,7 @@ use crate::{
};
use std::{any::Any, ptr::NonNull};
use hashbrown::HashMap;
use std::collections::HashMap;
pub mod sys {
pub use crate::sys::*;

View File

@@ -2,7 +2,7 @@ use crate::{
global::Global, instance::InstanceInner, memory::Memory, module::ExportIndex,
module::ModuleInner, table::Table, types::FuncSig, vm,
};
use hashbrown::hash_map;
use std::collections::hash_map;
use std::sync::Arc;
#[derive(Debug, Copy, Clone)]

View File

@@ -1,5 +1,5 @@
use crate::export::Export;
use hashbrown::{hash_map::Entry, HashMap};
use std::collections::{hash_map::Entry, HashMap};
use std::collections::VecDeque;
use std::{
cell::{Ref, RefCell},

View File

@@ -14,7 +14,7 @@ use crate::{
};
use crate::backend::CacheGen;
use hashbrown::HashMap;
use std::collections::HashMap;
use indexmap::IndexMap;
use std::sync::Arc;

View File

@@ -14,7 +14,7 @@ use crate::{
},
units::Pages,
};
use hashbrown::HashMap;
use std::collections::HashMap;
use std::fmt::Debug;
use std::sync::{Arc, RwLock};
use wasmparser::{

View File

@@ -2,7 +2,7 @@ use crate::{
structures::Map,
types::{FuncSig, SigIndex},
};
use hashbrown::HashMap;
use std::collections::HashMap;
use lazy_static::lazy_static;
use parking_lot::RwLock;
use std::sync::Arc;

View File

@@ -14,7 +14,7 @@ use std::{
sync::Once,
};
use hashbrown::HashMap;
use std::collections::HashMap;
/// The context of the currently running WebAssembly instance.
///
@@ -850,7 +850,7 @@ mod vm_ctx_tests {
use crate::cache::Error as CacheError;
use crate::typed_func::Wasm;
use crate::types::{LocalFuncIndex, SigIndex};
use hashbrown::HashMap;
use std::collections::HashMap;
use std::any::Any;
use std::ptr::NonNull;
struct Placeholder;