25 releases

Uses new Rust 2024

0.6.13 Dec 15, 2025
0.6.11 Sep 19, 2025
0.6.10 Jun 28, 2025
0.6.9 Aug 11, 2024
0.4.2 Jun 14, 2019

#217 in Memory management

Download history 1/week @ 2026-01-25 39/week @ 2026-02-01 338/week @ 2026-02-08 82/week @ 2026-02-15 157/week @ 2026-02-22 76/week @ 2026-03-01 14/week @ 2026-03-08 27/week @ 2026-03-15 32/week @ 2026-03-22 698/week @ 2026-03-29 211/week @ 2026-04-05 107/week @ 2026-04-12 324/week @ 2026-04-19 49/week @ 2026-04-26 26/week @ 2026-05-03

510 downloads per month

MIT license

1.5MB
37K SLoC

C 34K SLoC // 0.2% comments Automake 752 SLoC // 0.1% comments C++ 734 SLoC // 0.1% comments Zig 528 SLoC // 0.1% comments Rust 176 SLoC // 0.0% comments GNU Style Assembly 120 SLoC // 0.0% comments Shell 34 SLoC // 0.4% comments M4 23 SLoC // 0.4% comments

Contains (obscure autoconf code, 45KB) vendor/bdwgc/configure.ac, (obscure autoconf code, 9KB) vendor/libatomic_ops/configure.ac

bdwgc-rust

GitHub Action Crate License

GlobalAlloc implementation for bdwgc, the conservative garbage collector.

This crate is for use cases in which developers need to integrate 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.)

Usage

See examples directory.

By default bdwgc is built with autotools. To build with cmake, enable the cmake feature:

cargo build --no-default-features --features cmake

License

MIT

Dependencies