Cargo Features
[dependencies]
futures-lite = { version = "2.6.1", default-features = false, features = ["std", "alloc", "race", "memchr"] }
- default = race, std
-
These default features are set whenever
futures-liteis added withoutsomewhere in the dependency tree.default-features = false - std default = alloc, futures-io, parking
-
Affects
future::block_on,future::FutureExt.catch_unwind,futures-lite::io,stream::block_on,future::race,future::FutureExt.race,stream::StreamExt.race,stream::race… - alloc std
-
Affects
future::Boxed,future::BoxedLocal,future::FutureExt.boxed,future::FutureExt.boxed_local,io::AsyncReadExt.boxed_reader,io::AsyncWriteExt.boxed_writer,io::BoxedReader,io::BoxedWriter,stream::StreamExt.boxed,stream::StreamExt.boxed_local,stream::Boxed,stream::BoxedLocal… - race default = fastrand
-
Affects
future::race_with_seed,stream::race_with_seed,future::race,future::FutureExt.race,stream::StreamExt.race,stream::race…
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.