#gc #memory #boehm

bin+lib boehm-rs

Rust interface to BoehmGC

2 releases

0.1.2 Feb 1, 2019
0.1.0 Feb 1, 2019

#65 in #gc

MIT license

30KB
975 lines

boehm-rs

Rust interface to BoehmGC

Examples


use boehm_rs::global_alloc::GcAlloc;
use boehm_rs::{gc_init,gc_enable};

#[global_allocator]
static A: GcAlloc = GcAlloc;

fn main() {
    gc_enable();
    gc_init();
    let string = String::from("Hello,world!");

    println!("{}",string);
}

Dependencies

~0–2.3MB
~45K SLoC