Replaced hashmap_core with hashbrown (#161)
This commit is contained in:
parent
ad14d82bce
commit
23b054c0e5
|
@ -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 }
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue