mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-08 11:51:07 +00:00
+ adding compiler features for no_std environments other than wasm (i.e. SGX) (#2421)
This commit is contained in:
1 parent
ef142722e3
commit
d3f59a0712
4 files changed
+6
No files matched your search
@@ -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