mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 01:11:10 +00:00
+ adding compiler features for no_std environments other than wasm (i.e. SGX) (#2421)
This commit is contained in:
@@ -13,3 +13,4 @@ default = ["std"]
|
||||
std = []
|
||||
nightly = []
|
||||
strict = []
|
||||
no_global_allocator = []
|
||||
|
||||
Regular → Executable
+1
@@ -26,6 +26,7 @@ extern "C" {
|
||||
/// Wasm allocator
|
||||
pub struct WasmAllocator;
|
||||
|
||||
#[cfg(not(feature = "no_global_allocator"))]
|
||||
#[global_allocator]
|
||||
static ALLOCATOR: WasmAllocator = WasmAllocator;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user