Crates.io | boehm-rs |
lib.rs | boehm-rs |
version | 0.1.2 |
source | src |
created_at | 2019-02-01 04:47:47.185275 |
updated_at | 2019-02-01 17:40:10.991528 |
description | Rust interface to BoehmGC |
homepage | |
repository | https://github.com/playXE/boehm-rs |
max_upload_size | |
id | 111921 |
size | 51,162 |
Rust interface to BoehmGC
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);
}