mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 14:27:57 +00:00
Make allocator limit available for the runtime (#9393)
* make allocator limit available * better inner doc * move const * fmt Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
committed by
GitHub
parent
9c173724fa
commit
23e8088c1c
@@ -455,3 +455,8 @@ macro_rules! impl_maybe_marker {
|
||||
)+
|
||||
}
|
||||
}
|
||||
|
||||
/// The maximum number of bytes that can be allocated at one time.
|
||||
// The maximum possible allocation size was chosen rather arbitrary, 32 MiB should be enough for
|
||||
// everybody.
|
||||
pub const MAX_POSSIBLE_ALLOCATION: u32 = 33554432; // 2^25 bytes, 32 MiB
|
||||
|
||||
Reference in New Issue
Block a user