Cargo Features
[dependencies]
objectpool = { version = "0.1.0", default-features = false, features = ["std", "alloc", "loom"] }
- default = std
-
The
std
feature is set by default wheneverobjectpool
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables crossbeam-queue
crossbeam-queue:
Enable to use APIs that require
std
. This is enabled by default. - alloc
-
Enables alloc of crossbeam-queue
crossbeam-queue:
Enable to use APIs that require
alloc
. This is enabled by default and also enabled if thestd
feature is enabled.NOTE: Disabling both
std
andalloc
features is not supported yet.