Cargo Features

[dependencies]
futures-lite = { version = "2.3.0", default-features = false, features = ["std", "alloc", "race", "memchr"] }
default = race, std

These default features are set whenever futures-lite is added without default-features = false somewhere in the dependency tree.

std default = alloc, futures-io, parking

Enables std of fastrand

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.

fastrand race std
futures-io std
memchr implicit feature
parking std