Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/crates/bevy_tasks/Cargo.toml
9371 views
1
[package]
2
name = "bevy_tasks"
3
version = "0.19.0-dev"
4
edition = "2024"
5
description = "A task executor for Bevy Engine"
6
homepage = "https://bevy.org"
7
repository = "https://github.com/bevyengine/bevy"
8
license = "MIT OR Apache-2.0"
9
keywords = ["bevy"]
10
11
[features]
12
default = ["async_executor", "futures-lite"]
13
14
# Enables multi-threading support.
15
# Without this feature, all tasks will be run on a single thread.
16
multi_threaded = [
17
"bevy_platform/std",
18
"dep:async-channel",
19
"dep:concurrent-queue",
20
"async_executor",
21
]
22
23
# Uses `async-executor` as a task execution backend.
24
# This backend is incompatible with `no_std` targets.
25
async_executor = ["bevy_platform/std", "dep:async-executor", "futures-lite"]
26
27
# Provide an implementation of `block_on` from `futures-lite`.
28
futures-lite = ["bevy_platform/futures-lite"]
29
30
# Use async-io's implementation of block_on instead of futures-lite's implementation.
31
# This is preferred if your application uses async-io.
32
async-io = ["bevy_platform/async-io"]
33
34
[dependencies]
35
bevy_platform = { path = "../bevy_platform", version = "0.19.0-dev", default-features = false, features = [
36
"alloc",
37
] }
38
39
futures-lite = { version = "2.0.1", default-features = false, features = [
40
"alloc",
41
] }
42
async-task = { version = "4.4.0", default-features = false }
43
derive_more = { version = "2", default-features = false, features = [
44
"deref",
45
"deref_mut",
46
] }
47
async-executor = { version = "1.11", optional = true }
48
async-channel = { version = "2.3.0", optional = true }
49
concurrent-queue = { version = "2.0.0", optional = true }
50
atomic-waker = { version = "1", default-features = false }
51
crossbeam-queue = { version = "0.3", default-features = false, features = [
52
"alloc",
53
] }
54
55
[target.'cfg(target_arch = "wasm32")'.dependencies]
56
pin-project = "1"
57
async-channel = { version = "2.3.0", default-features = false }
58
59
[target.'cfg(not(all(target_has_atomic = "8", target_has_atomic = "16", target_has_atomic = "32", target_has_atomic = "64", target_has_atomic = "ptr")))'.dependencies]
60
async-task = { version = "4.4.0", default-features = false, features = [
61
"portable-atomic",
62
] }
63
heapless = { version = "0.9", default-features = false, features = [
64
"portable-atomic",
65
] }
66
atomic-waker = { version = "1", default-features = false, features = [
67
"portable-atomic",
68
] }
69
70
[dev-dependencies]
71
futures-lite = { version = "2.0.1", default-features = false, features = [
72
"std",
73
] }
74
async-channel = "2.3.0"
75
76
[lints]
77
workspace = true
78
79
[package.metadata.docs.rs]
80
rustdoc-args = ["-Zunstable-options", "--generate-link-to-definition"]
81
all-features = true
82
83