From 1914a3f288a812667f735ee9e7806cf1560dacc0 Mon Sep 17 00:00:00 2001 From: dataphract Date: Mon, 7 Nov 2022 21:43:07 +0000 Subject: [PATCH] fix: explicitly specify required version of async-task (#6509) # Objective Attempting to build `bevy_tasks` produces the following error: ``` error[E0599]: no method named `is_finished` found for struct `async_executor::Task` in the current scope --> /[...]]/bevy/crates/bevy_tasks/src/task.rs:51:16 | 51 | self.0.is_finished() | ^^^^^^^^^^^ method not found in `async_executor::Task` ``` It looks like this was introduced along with `Task::is_finished`, which delegates to `async_task::Task::is_finished`. However, the latter was only introduced in `async-task` 4.2.0; `bevy_tasks` does not explicitly depend on `async-task` but on `async-executor` ^1.3.0, which in turn depends on `async-task` ^4.0.0. ## Solution Add an explicit dependency on `async-task` ^4.2.0. --- crates/bevy_tasks/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/bevy_tasks/Cargo.toml b/crates/bevy_tasks/Cargo.toml index 0358f95c1b458..0295ecf3018f9 100644 --- a/crates/bevy_tasks/Cargo.toml +++ b/crates/bevy_tasks/Cargo.toml @@ -12,6 +12,7 @@ keywords = ["bevy"] futures-lite = "1.4.0" async-executor = "1.3.0" async-channel = "1.4.2" +async-task = "4.2.0" once_cell = "1.7" concurrent-queue = "1.2.2"