[package]
edition = "2024"
name = "bevy_tasks"
version = "0.18.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A task executor for Bevy Engine"
homepage = "https://bevy.org"
readme = "README.md"
keywords = ["bevy"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/bevyengine/bevy"
resolver = "2"
[package.metadata.docs.rs]
rustdoc-args = [
"-Zunstable-options",
"--generate-link-to-definition",
]
all-features = true
[features]
async-io = [
"bevy_platform/std",
"dep:async-io",
]
async_executor = [
"bevy_platform/std",
"dep:async-executor",
"futures-lite",
]
default = [
"async_executor",
"futures-lite",
]
futures-lite = [
"bevy_platform/std",
"futures-lite/std",
]
multi_threaded = [
"bevy_platform/std",
"dep:async-channel",
"dep:concurrent-queue",
"async_executor",
]
[lib]
name = "bevy_tasks"
path = "src/lib.rs"
[[example]]
name = "busy_behavior"
path = "examples/busy_behavior.rs"
[[example]]
name = "idle_behavior"
path = "examples/idle_behavior.rs"
[dependencies.async-channel]
version = "2.3.0"
optional = true
[dependencies.async-executor]
version = "1.11"
optional = true
[dependencies.async-io]
version = "2.0.0"
optional = true
[dependencies.async-task]
version = "4.4.0"
default-features = false
[dependencies.atomic-waker]
version = "1"
default-features = false
[dependencies.bevy_platform]
version = "0.18.0"
features = ["alloc"]
default-features = false
[dependencies.concurrent-queue]
version = "2.0.0"
optional = true
[dependencies.crossbeam-queue]
version = "0.3"
features = ["alloc"]
default-features = false
[dependencies.derive_more]
version = "2"
features = [
"deref",
"deref_mut",
]
default-features = false
[dependencies.futures-lite]
version = "2.0.1"
features = ["alloc"]
default-features = false
[dev-dependencies.async-channel]
version = "2.3.0"
[dev-dependencies.futures-lite]
version = "2.0.1"
features = ["std"]
default-features = false
[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.async-task]
version = "4.4.0"
features = ["portable-atomic"]
default-features = false
[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.atomic-waker]
version = "1"
features = ["portable-atomic"]
default-features = false
[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.heapless]
version = "0.9"
features = ["portable-atomic"]
default-features = false
[target.'cfg(target_arch = "wasm32")'.dependencies.async-channel]
version = "2.3.0"
default-features = false
[target.'cfg(target_arch = "wasm32")'.dependencies.pin-project]
version = "1"
[lints.clippy]
alloc_instead_of_core = "warn"
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
doc_markdown = "warn"
manual_let_else = "warn"
match_same_arms = "warn"
needless_lifetimes = "allow"
nonstandard_macro_braces = "warn"
print_stderr = "warn"
print_stdout = "warn"
ptr_as_ptr = "warn"
ptr_cast_constness = "warn"
redundant_closure_for_method_calls = "warn"
redundant_else = "warn"
ref_as_ptr = "warn"
semicolon_if_nothing_returned = "warn"
std_instead_of_alloc = "warn"
std_instead_of_core = "warn"
too_long_first_doc_paragraph = "allow"
too_many_arguments = "allow"
type_complexity = "allow"
undocumented_unsafe_blocks = "warn"
unwrap_or_default = "warn"
[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"
unsafe_op_in_unsafe_fn = "warn"
unused_qualifications = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(docsrs_dep)"]