So, laced throughout alloc
and std
methods are marked with #[cfg(not(no_global_oom_handling))]
, primarily methods that perform allocations where the case of running out of memory is handled via panicking. I've been researching all morning on how to use alloc
with that flag enabled. I've gone down a few rabbit holes, such as build-std
, but I've come up blank.
Note: I'm aware of the implications; this isn't a question of if I should or shouldn't, only a question of how to enable no_global_oom_handling
?
Does anyone know how actually to enable this feature? I'm surprised it's not documented everywhere, even its tracking issue.