Allow building without std (#1069)
Closes https://github.com/CraneStation/cranelift/issues/1067
This commit is contained in:
committed by
Benjamin Bouvier
parent
40f6d3b753
commit
a1f6457e8a
@@ -37,9 +37,10 @@ extern crate alloc as std;
|
||||
extern crate std;
|
||||
|
||||
#[cfg(not(feature = "std"))]
|
||||
use hashmap_core::{
|
||||
use hashbrown::{
|
||||
hash_map,
|
||||
hash_map::Entry::{Occupied, Vacant},
|
||||
map as hash_map, HashMap,
|
||||
HashMap,
|
||||
};
|
||||
#[cfg(feature = "std")]
|
||||
use std::collections::{
|
||||
|
||||
Reference in New Issue
Block a user