diff --git a/Cargo.toml b/Cargo.toml index fa67281..77b52a0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,10 +7,10 @@ description = "A reactive user-interface framework" repository = "https://github.com/actuate-rs/actuate" [features] -animation = ["ecs", "dep:bevy_math", "dep:bevy_time"] +animation = ["ecs", "dep:bevy_math", "dep:bevy_time", "dep:tokio"] ecs = ["dep:bevy_app", "dep:bevy_ecs", "dep:bevy_hierarchy", "dep:bevy_utils"] executor = ["std", "dep:tokio"] -rt = ["executor", "dep:tokio"] +rt = ["executor", "tokio/rt-multi-thread"] std = [] tracing = ["dep:tracing"] full = ["animation", "ecs", "rt", "tracing"] @@ -37,7 +37,7 @@ hashbrown = "0.15.2" slotmap = "1.0.7" thiserror = "2.0.3" tracing = { version = "0.1.40", optional = true } -tokio = { version = "1.41.1", features = ["rt-multi-thread"], optional = true } +tokio = { version = "1.41.1", features = ["sync"], optional = true } typeid = "1.0.2" [dev-dependencies] diff --git a/src/lib.rs b/src/lib.rs index e4bb218..fa42891 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1072,7 +1072,7 @@ unsafe impl Send for TaskFuture {} #[cfg_attr(docsrs, doc(cfg(feature = "executor")))] /// Use a multi-threaded task that runs on a separate thread. /// -/// This will run on the current [`Executor`](`self::composer::Executor`), polling the task until it completes. +/// This will run on the current [`Executor`](`crate::executor::Executor`), polling the task until it completes. pub fn use_task<'a, F>(cx: ScopeState<'a>, make_task: impl FnOnce() -> F) where F: Future + Send + 'a,