Skip to content

Commit

Permalink
fix: enable tokio-sync dependency with animation and ecs features
Browse files Browse the repository at this point in the history
  • Loading branch information
matthunz committed Dec 3, 2024
1 parent 0e8c9dc commit 5263fe4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Output = ()> + Send + 'a,
Expand Down

0 comments on commit 5263fe4

Please sign in to comment.