leak_memory 0.1.1

The enterprise way to leak memory
Documentation
  • Coverage
  • 0%
    0 out of 13 items documented0 out of 5 items with examples
  • Size
  • Source code size: 7.63 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.59 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • freya-cat

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