Crates.io | leak_memory |
lib.rs | leak_memory |
version | 0.1.1 |
source | src |
created_at | 2023-06-08 06:16:01.439724 |
updated_at | 2024-05-31 03:09:29.435682 |
description | The enterprise way to leak memory |
homepage | |
repository | https://g.freya.cat/freya/leak_memory |
max_upload_size | |
id | 885229 |
size | 7,767 |
leaks memory uwu
Leak 1337 bytes of memory
use leak_memory::{leak, LeakMethod};
fn main() {
leak(1337, LeakMethod::Lazy);
}
Leak 69 kibibytes
use leak_memory::{leak, LeakMethod, LeakAmount};
fn main() {
leak("69kib".parse::<LeakAmount>().unwrap(), LeakMethod::Rust);
}
dont