docs.rs failed to build bdwgc-alloc-0.7.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
bdwgc-alloc-0.6.3
bdwgc-rust
GlobalAlloc and Allocator implementations 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.)
The raw bindings to the C API of bdwgc that this crate is built on are available as the bdwgc-alloc-sys crate.
Usage
use Allocator;
use spawn;
static GLOBAL_ALLOCATOR: Allocator = unsafe ;
To allocate only some objects by the collector, pass the allocator to collections instead of making it the global one. Note that the collector does not scan memory of other allocators, so never keep the only pointers to such objects there.
use Allocator;
By default bdwgc is built with autotools. To build with cmake, enable the cmake feature: