# bdwgc-alloc
[](https://github.com/raviqqe/bdwgc-alloc/actions)
[](https://crates.io/crates/bdwgc-alloc)
[](LICENSE)
[`GlobalAlloc`](https://doc.rust-lang.org/std/alloc/trait.GlobalAlloc.html) implementation for [`bdwgc`][bdwgc], the conservative garbage collector.
This crate is for use cases in which developers need to integrate [`bdwgc`][bdwgc] into their programs written in Rust (e.g. writing a runtime library in Rust for their own programming language whose GC is done by [`bdwgc`][bdwgc].)
## Usage
See [`examples`](examples) directory.
By default [`bdwgc`][bdwgc] is built with autotools. To build with cmake, enable the `cmake` feature:
```sh
cargo build --no-default-features --features cmake
```
## License
[MIT](LICENSE)
[bdwgc]: https://github.com/ivmai/bdwgc