#gc #memory #boehm

bin+lib boehm-rs

Rust interface to BoehmGC

2 releases

✓ Uses Rust 2018 edition

0.1.2 Feb 1, 2019
0.1.0 Feb 1, 2019

#6 in #gc

Download history

3 downloads per month

MIT license

29KB
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

~1.5MB
~35K SLoC

  • build build.rs
  • build bindgen 0.47.1