[[bin]]
name = "native-executor"
path = "src/main.rs"
[dependencies.async-channel]
default-features = false
version = "2.5.0"
[dependencies.async-executor]
optional = true
version = "1.13.3"
[dependencies.async-io]
optional = true
version = "2.6.0"
[dependencies.async-task]
version = "4.7.1"
[dependencies.executor-core]
features = ["async-task"]
version = "0.6.0"
[dependencies.futures-lite]
optional = true
version = "2.6.1"
[dependencies.num_cpus]
optional = true
version = "1.17.0"
[[example]]
name = "priority"
path = "examples/priority.rs"
[[example]]
name = "simple_task"
path = "examples/simple_task.rs"
[[example]]
name = "timers"
path = "examples/timers.rs"
[features]
default = ["polyfill"]
polyfill = ["dep:async-executor", "dep:num_cpus", "dep:futures-lite", "dep:async-io"]
[lib]
name = "native_executor"
path = "src/lib.rs"
[lints.clippy]
all = "warn"
complexity = "warn"
correctness = "warn"
nursery = "warn"
pedantic = "warn"
perf = "warn"
style = "warn"
suspicious = "warn"
[lints.rust]
missing_debug_implementations = "warn"
[package]
authors = ["Lexo Liu"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["asynchronous", "concurrency"]
description = "Platform-native async task executor"
edition = "2024"
keywords = ["task", "async", "concurrency", "waterui"]
license = "MIT"
name = "native-executor"
readme = "README.md"
repository = "https://github.com/waterui/native-executor"
version = "0.6.0"
[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4"
[target.'cfg(target_vendor = "apple")'.dependencies.dispatch]
version = "0.2.0"