Cargo Features

async-std = { version = "1.12.0", default-features = false, features = ["std", "alloc", "unstable", "attributes", "tokio1", "tokio02", "tokio03", "docs", "futures-core", "kv-log-macro", "log", "surf", "async-global-executor", "futures-lite", "gloo-timers"] }
default docs? = async-global-executor, async-io, futures-lite, gloo-timers, kv-log-macro, log, pin-project-lite, std

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

Affects windows::fs, utils::abort_on_panic, future::FutureExt.timeout

std default unstable? = alloc, async-channel, async-lock, crossbeam-utils, futures-channel, futures-io, memchr, once_cell, pin-utils, slab, wasm-bindgen-futures

Enables std of futures-core

Affects async-std::process

alloc std = pin-project-lite

Enables alloc of futures-core

unstable docs? = async-io, async-process, std

Affects future::FutureExt.delay, future::FutureExt.flatten, future::FutureExt.race, future::FutureExt.try_race, into_future::IntoFuture, copy::copy, double_ended_stream::DoubleEndedStream, exact_size_stream::ExactSizeStream, extend::Extend, extend::extend, from_stream::FromStream, fused_stream::FusedStream, interval::interval, interval::Interval, into_stream::IntoStream, product::Product, count::CountFuture, merge::Merge, stream::StreamExt.throttle, stream::StreamExt.flat_map

attributes docs? = async-attributes

Enables tokio of async-global-executor


Enables tokio02 of async-global-executor


Enables tokio03 of async-global-executor

docs = attributes, default, unstable

Affects copy::copy, future::FutureExt.join, future::FutureExt.try_join, stream::StreamExt.delay, stream::StreamExt.timeout, timeout::TimeoutError, future::FutureExt.timeout

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

async-attributes attributes?
async-lock std

Enables async-lock ^2.3.0

crossbeam-utils std

With default (std)

futures-core implicit feature
futures-io std

With default (std)

kv-log-macro default
log default

With kv_unstable

memchr std

With default (std)

once_cell std

With default (std)

pin-project-lite default alloc?
pin-utils std
slab std

With default (std)

async-channel std

Enables async-channel ^1.5.1

surf implicit feature

With default features

async-global-executor default cfg(not(target_os = "unknown"))

With async-io and default (async-io)

async-process cfg(not(target_os = "unknown")) unstable?

Enables async-process ^1.0.1

futures-channel cfg(target_arch = "wasm32") std

With default (std)

futures-lite default cfg(not(target_os = "unknown"))

Enables default (std) of futures-lite ^1.0.0

gloo-timers default cfg(target_arch = "wasm32")

Enables futures of gloo-timers ^0.2.1

wasm-bindgen-futures cfg(target_arch = "wasm32") std
async-io default cfg(not(target_os = "unknown")) unstable?

Enables async-io ^1.0.1