Cargo Features

[dependencies]
zerogc-context = { version = "0.2.0-alpha.7", default-features = false, features = ["std", "sync", "once_cell"] }
default = std, sync

These default features are set whenever zerogc-context is added without default-features = false somewhere in the dependency tree.

std default sync

Use the standard library (required for sync)

sync default = crossbeam-utils, parking_lot, std

This will allow multiple threads to access the garbage collector by creating a separate context for each.

Thread safe collectors can have increased overhead by requiring communication between threads.

Affects state::sync, utils::AtomicCell

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

once_cell implicit feature

Enables once_cell

once_cell:

Single assignment cells and lazy values

parking_lot sync

Enables parking_lot ^0.11

Concurrency

crossbeam-utils sync