forked from GitHub/bdwgc-rust
27 lines
1.1 KiB
Markdown
27 lines
1.1 KiB
Markdown
# bdwgc-alloc
|
|
|
|
[](https://circleci.com/gh/raviqqe/bdwgc-alloc)
|
|
[](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 in `Cargo.toml`:
|
|
|
|
[dependencies.bdwgc-alloc]
|
|
version = "0.4"
|
|
default-features = false
|
|
features = ["cmake"]
|
|
|
|
## License
|
|
|
|
[MIT](LICENSE)
|
|
|
|
[bdwgc]: https://github.com/ivmai/bdwgc
|