We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69f959f commit 55fc77aCopy full SHA for 55fc77a
crates/allocator/Cargo.toml
@@ -25,3 +25,4 @@ quickcheck_macros = "1"
25
default = ["std"]
26
std = []
27
ink-fuzz-tests = ["std"]
28
+no-allocator = []
crates/allocator/src/lib.rs
@@ -21,7 +21,7 @@
21
#![cfg_attr(not(feature = "std"), no_std)]
22
#![cfg_attr(not(feature = "std"), feature(alloc_error_handler))]
23
24
-#[cfg(not(feature = "std"))]
+#[cfg(not(any(feature = "std", feature = "no-allocator")))]
#[global_allocator]
static mut ALLOC: bump::BumpAllocator = bump::BumpAllocator {};
0 commit comments