gc-alloc 0.1.0

A Rust library for garbage-collected memory allocation using libgc (bdwgc).
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod gc {
    #![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)]

    include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
}

pub mod boxed;
pub mod string;
pub mod vec;
pub mod cstring;

pub fn init() {
    unsafe {
        gc::GC_init();
        gc::GC_allow_register_threads();
    }
}