Cargo Features
[dependencies]
futures-core = { version = "0.3.31", default-features = false, features = ["std", "alloc", "unstable", "cfg-target-has-atomic", "portable-atomic"] }
- default = std
-
The
std
feature is set by default wheneverfutures-core
is added without
somewhere in the dependency tree.default-features = false - std default = alloc
- alloc std
-
Affects
future::BoxFuture
,future::LocalBoxFuture
,stream::BoxStream
,stream::LocalBoxStream
… - unstable
-
These features are no longer used.
TODO: remove in the next major version. - cfg-target-has-atomic
Features from optional dependencies
- portable-atomic implicit feature
-
Enables portable-atomic
portable-atomic:
Portable atomic types including support for 128-bit atomics, atomic float, etc