A custom allocator that allows to limit the available memory.
```rust use limit_alloc::Limit; use std::alloc::System;
// Limit available RAM to 4MB
static A: Limit
fn main() {
let hugevec: Vec
You can run that example locally and see how the process crashes:
$ cargo run --example huge_vec
memory allocation of 4000001 bytes failed
Aborted