+ adding compiler features for no_std environments other than wasm (i.e. SGX) (#2421)

This commit is contained in:
brenzi
2019-05-01 20:09:12 +02:00
committed by Bastian Köcher
parent ef142722e3
commit d3f59a0712
4 changed files with 6 additions and 0 deletions
+1
View File
@@ -26,6 +26,7 @@ extern "C" {
/// Wasm allocator
pub struct WasmAllocator;
#[cfg(not(feature = "no_global_allocator"))]
#[global_allocator]
static ALLOCATOR: WasmAllocator = WasmAllocator;