Cargo Features

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

The std feature is set by default whenever crossbeam-epoch 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-utils

alloc std

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

NOTE: Disabling both std and alloc features is not supported yet.

nightly

These features are no longer used.
TODO: remove in the next major version.
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-utils

loom = loom-crate

Enable the use of loom for concurrency testing.

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 loom of crossbeam-utils

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.

loom-crate crossbeam_loom loom?

Enables loom