Replaced hashmap_core with hashbrown (#161)

This commit is contained in:
Elichai Turkel 2019-01-20 18:59:26 +02:00 committed by Sergei Pepyakin
parent ad14d82bce
commit 23b054c0e5
5 changed files with 7 additions and 7 deletions

View File

@ -15,13 +15,13 @@ default = ["std"]
# Disable for no_std support
std = ["parity-wasm/std", "byteorder/std"]
# Enable for no_std support
# hashmap_core only works on no_std
core = ["hashmap_core", "libm"]
# hashbrown only works on no_std
core = ["hashbrown", "libm"]
[dependencies]
parity-wasm = { version = "0.31", default-features = false }
byteorder = { version = "1.0", default-features = false }
hashmap_core = { version = "0.1.9", optional = true }
hashbrown = { version = "0.1.8", optional = true }
memory_units = "0.3.0"
libm = { version = "0.1.2", optional = true }

View File

@ -2,7 +2,7 @@
use alloc::prelude::*;
#[cfg(not(feature = "std"))]
use hashmap_core::HashMap;
use hashbrown::HashMap;
#[cfg(feature = "std")]
use std::collections::HashMap;

View File

@ -117,7 +117,7 @@ extern crate assert_matches;
extern crate byteorder;
#[cfg(not(feature = "std"))]
extern crate hashmap_core;
extern crate hashbrown;
extern crate memory_units as memory_units_crate;
extern crate parity_wasm;

View File

@ -6,7 +6,7 @@ use core::fmt;
use Trap;
#[cfg(not(feature = "std"))]
use hashmap_core::HashMap;
use hashbrown::HashMap;
#[cfg(feature = "std")]
use std::collections::HashMap;

View File

@ -5,7 +5,7 @@ use core::fmt;
use std::error;
#[cfg(not(feature = "std"))]
use hashmap_core::HashSet;
use hashbrown::HashSet;
#[cfg(feature = "std")]
use std::collections::HashSet;