gc_alloc/lib.rs
1mod gc {
2 #![allow(non_upper_case_globals, non_camel_case_types, non_snake_case, unused)]
3
4 include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
5}
6
7pub mod boxed;
8pub mod string;
9pub mod vec;
10pub mod cstring;
11
12pub fn init() {
13 unsafe {
14 gc::GC_init();
15 gc::GC_allow_register_threads();
16 }
17}