mirror of
https://github.com/bdwgc/bdwgc-rust.git
synced 2026-09-26 12:13:39 -06:00
bdwgc-alloc-sys
Rust bindings to the C API of bdwgc, the conservative garbage collector.
This crate builds bdwgc from its vendored source and links it statically. The bindings are generated from its headers at build time by bindgen, which requires libclang.
See the bdwgc-alloc crate for a GlobalAlloc implementation on top of these bindings.
Install
cargo add bdwgc-alloc-sys
By default bdwgc is built with autotools. To build with cmake, enable the cmake feature:
cargo add bdwgc-alloc-sys --no-default-features --features cmake