Cargo Features

[dependencies]
bevy_tasks = { version = "0.16.0-rc.1", default-features = false, features = ["multi_threaded", "async_executor", "std", "critical-section", "web", "async-io"] }
default = async_executor, std

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

multi_threaded = std

Functionality

Enables multi-threading support.
Without this feature, all tasks will be run on a single thread.

Enables async-channel and concurrent-queue

async_executor default = std

Uses async-executor as a task execution backend. This backend is incompatible with no_std targets.

Enables async-executor

std default async_executor multi_threaded?

Platform Compatibility

Allows access to the std crate. Enabling this feature will prevent compilation on no_std targets, but provides access to certain additional features on supported platforms.

Enables std of async-task, bevy_platform_support, futures-lite, and once_cell

critical-section

critical-section provides the building blocks for synchronization primitives on all platforms, including no_std.

Enables critical-section of bevy_platform_support

web

Enables use of browser APIs. Note this is currently only applicable on wasm32 architectures.

Enables futures-channel, pin-project, and wasm-bindgen-futures, web of bevy_platform_support

Features from optional dependencies

async-io implicit feature

Enables async-io

async-io:

Async I/O and timers