Cargo Features

[dependencies]
crossbeam = { version = "0.8.4", default-features = false, features = ["std", "alloc", "nightly"] }
default = std

The std feature is set by default whenever crossbeam is added without default-features = false somewhere in the dependency tree.

std default = alloc

Enable to use APIs that require std. This is enabled by default.

Enables std of crossbeam-channel, crossbeam-deque, crossbeam-epoch, crossbeam-queue, and crossbeam-utils

alloc std

Enable to use APIs that require alloc. This is enabled by default and also enabled if the std feature is enabled.

Enables alloc of crossbeam-epoch and crossbeam-queue

nightly

Enable to use of unstable functionality.
This is disabled by default and requires recent nightly compiler.

NOTE: This feature is outside of the normal semver guarantees and minor or patch versions of crossbeam may make breaking changes to them at any time.

Enables nightly of crossbeam-epoch, crossbeam-queue, and crossbeam-utils

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

crossbeam-channel std
crossbeam-deque std
crossbeam-epoch alloc? nightly? std
crossbeam-queue alloc? nightly? std