leak_memory

Crates.ioleak_memory
lib.rsleak_memory
version0.1.1
sourcesrc
created_at2023-06-08 06:16:01.439724
updated_at2024-05-31 03:09:29.435682
descriptionThe enterprise way to leak memory
homepage
repositoryhttps://g.freya.cat/freya/leak_memory
max_upload_size
id885229
size7,767
(freya-cat)

documentation

README

Leak Memory

leaks memory uwu

Examples

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);
}

Compilation

dont

Commit count: 0

cargo fmt