mirror of
https://github.com/bdwgc/bdwgc-rust.git
synced 2026-09-28 13:13:40 -06:00
@@ -0,0 +1,28 @@
|
||||
# bdwgc-alloc-sys
|
||||
|
||||
[](https://github.com/bdwgc/bdwgc-rust/actions)
|
||||
[](https://github.com/bdwgc/bdwgc-rust/blob/main/LICENSE)
|
||||
|
||||
Rust bindings to the C API of [`bdwgc`][bdwgc], the conservative garbage collector.
|
||||
|
||||
This crate builds [`bdwgc`][bdwgc] from its vendored source and links it statically. The bindings are generated from its headers at build time by [`bindgen`](https://github.com/rust-lang/rust-bindgen), which requires `libclang`.
|
||||
|
||||
See the [`bdwgc-alloc`](https://crates.io/crates/bdwgc-alloc) crate for a [`GlobalAlloc`](https://doc.rust-lang.org/std/alloc/trait.GlobalAlloc.html) implementation on top of these bindings.
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
cargo add bdwgc-alloc-sys
|
||||
```
|
||||
|
||||
By default [`bdwgc`][bdwgc] is built with autotools. To build with cmake, enable the `cmake` feature:
|
||||
|
||||
```sh
|
||||
cargo add bdwgc-alloc-sys --no-default-features --features cmake
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
[MIT](https://github.com/bdwgc/bdwgc-rust/blob/main/LICENSE)
|
||||
|
||||
[bdwgc]: https://github.com/bdwgc/bdwgc
|
||||
Reference in New Issue
Block a user