From f4173ad8cac04df5ccf582213f1b0d2efc629b0c Mon Sep 17 00:00:00 2001 From: Julius Rakow Date: Sat, 25 Aug 2018 00:34:10 +0200 Subject: [PATCH] use hashmap_core instead of std::collections::HashMap --- Cargo.toml | 1 + src/imports.rs | 2 +- src/lib.rs | 1 + src/module.rs | 2 +- src/validation/mod.rs | 2 +- 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 63ea9c9..2d0b833 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,6 +18,7 @@ std = ["parity-wasm/std"] [dependencies] parity-wasm = { version = "0.31", default-features = false } byteorder = "1.0" +hashmap_core = "0.1.9" memory_units = "0.3.0" nan-preserving-float = "0.1.0" diff --git a/src/imports.rs b/src/imports.rs index 5907cef..1459ff2 100644 --- a/src/imports.rs +++ b/src/imports.rs @@ -1,4 +1,4 @@ -use std::collections::HashMap; +use hashmap_core::HashMap; use global::GlobalRef; use memory::MemoryRef; use func::FuncRef; diff --git a/src/lib.rs b/src/lib.rs index bffaee0..83b47da 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -104,6 +104,7 @@ extern crate assert_matches; extern crate parity_wasm; extern crate byteorder; +extern crate hashmap_core; extern crate memory_units as memory_units_crate; pub extern crate nan_preserving_float; diff --git a/src/module.rs b/src/module.rs index a61e866..af56bb3 100644 --- a/src/module.rs +++ b/src/module.rs @@ -3,7 +3,7 @@ use Trap; use std::rc::Rc; use std::cell::RefCell; use std::fmt; -use std::collections::HashMap; +use hashmap_core::HashMap; use parity_wasm::elements::{External, InitExpr, Internal, Instruction, ResizableLimits, Type}; use {Module, Error, Signature, MemoryInstance, RuntimeValue, TableInstance}; use imports::ImportResolver; diff --git a/src/validation/mod.rs b/src/validation/mod.rs index d6e452f..1620009 100644 --- a/src/validation/mod.rs +++ b/src/validation/mod.rs @@ -1,6 +1,6 @@ use std::error; use std::fmt; -use std::collections::HashSet; +use hashmap_core::HashSet; use parity_wasm::elements::{ BlockType, External, GlobalEntry, GlobalType, Internal, MemoryType, Module, Instruction, ResizableLimits, TableType, ValueType, InitExpr, Type,