mirror of
https://github.com/bevyengine/bevy
synced 2024-11-26 22:50:19 +00:00
503b861e3a
# Objective Fixes #9625 ## Solution Adds `async-io` as an optional dependency of `bevy_tasks`. When enabled, this causes calls to `futures_lite::future::block_on` to be replaced with calls to `async_io::block_on`. --- ## Changelog - Added a new `async-io` feature to `bevy_tasks`. When enabled, this causes `bevy_tasks` to use `async-io`'s implemention of `block_on` instead of `futures-lite`'s implementation. You should enable this if you use `async-io` in your application.
26 lines
634 B
TOML
26 lines
634 B
TOML
[package]
|
|
name = "bevy_tasks"
|
|
version = "0.12.0-dev"
|
|
edition = "2021"
|
|
description = "A task executor for Bevy Engine"
|
|
homepage = "https://bevyengine.org"
|
|
repository = "https://github.com/bevyengine/bevy"
|
|
license = "MIT OR Apache-2.0"
|
|
keywords = ["bevy"]
|
|
|
|
[features]
|
|
multi-threaded = []
|
|
|
|
[dependencies]
|
|
futures-lite = "1.4.0"
|
|
async-executor = "1.3.0"
|
|
async-channel = "1.4.2"
|
|
async-io = { version = "1.13.0", optional = true }
|
|
async-task = "4.2.0"
|
|
concurrent-queue = "2.0.0"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
wasm-bindgen-futures = "0.4"
|
|
|
|
[dev-dependencies]
|
|
instant = { version = "0.1", features = ["wasm-bindgen"] }
|