Skip to content

Commit 2f67624

Browse files
committed
Expose async-io feature in root crate
1 parent d202eca commit 2f67624

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ serialize = ["bevy_internal/serialize"]
199199
# Enables multithreaded parallelism in the engine. Disabling it forces all engine tasks to run on a single thread.
200200
multi-threaded = ["bevy_internal/multi-threaded"]
201201

202+
# Use async-io's implementation of block_on instead of futures-lite's implementation. This is preferred if your application uses async-io.
203+
async-io = ["bevy_internal/async-io"]
204+
202205
# Wayland display server support
203206
wayland = ["bevy_internal/wayland"]
204207

crates/bevy_internal/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ shader_format_spirv = ["bevy_render/shader_format_spirv"]
6363

6464
serialize = ["bevy_core/serialize", "bevy_input/serialize", "bevy_time/serialize", "bevy_window/serialize", "bevy_transform/serialize", "bevy_math/serialize", "bevy_scene/serialize"]
6565
multi-threaded = ["bevy_asset/multi-threaded", "bevy_ecs/multi-threaded", "bevy_tasks/multi-threaded"]
66+
async-io = ["bevy_tasks/async-io"]
6667

6768
# Display server protocol support (X11 is enabled by default)
6869
wayland = ["bevy_winit/wayland"]

docs/cargo_features.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ The default feature set enables most of the expected features of a game engine,
4343
|feature name|description|
4444
|-|-|
4545
|accesskit_unix|Enable AccessKit on Unix backends (currently only works with experimental screen readers and forks.)|
46+
|async-io|Use async-io's implementation of block_on instead of futures-lite's implementation. This is preferred if your application uses async-io.|
4647
|basis-universal|Basis Universal compressed texture support|
4748
|bevy_ci_testing|Enable systems that allow for automated testing on CI|
4849
|bevy_dynamic_plugin|Plugin for dynamic loading (using [libloading](https://crates.io/crates/libloading))|

0 commit comments

Comments
 (0)