native-executor 0.7.0

Platform-native async task executor
Documentation
[dependencies.async-task]
version = "4.7.1"

[dependencies.libc]
version = "0.2"

[dev-dependencies.futures-lite]
version = "2.6.1"

[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.7.0"

[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.async-executor]
optional = true
version = "1.13.3"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.async-io]
optional = true
version = "2.6.0"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.futures-lite]
optional = true
version = "2.6.1"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.num_cpus]
optional = true
version = "1.17.0"

[target.'cfg(not(target_os = "android"))'.dependencies.executor-core]
features = ["async-task"]
version = "0.7.0"

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"

[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_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3"

[target.'cfg(target_os = "android")'.dependencies.async-io]
version = "2.6.0"

[target.'cfg(target_os = "android")'.dependencies.executor-core]
features = ["async-task", "async-executor"]
version = "0.7.0"

[target.'cfg(target_os = "android")'.dependencies.jni]
version = "0.21"

[target.'cfg(target_os = "android")'.dependencies.ndk]
version = "0.9"

[target.'cfg(target_os = "android")'.dependencies.ndk-sys]
version = "0.6"

[target.'cfg(target_os = "android")'.dependencies.thiserror]
version = "2.0"

[target.'cfg(target_vendor = "apple")'.dependencies.block2]
version = "0.6"

[[test]]
name = "android"
path = "tests/android.rs"

[[test]]
name = "apple"
path = "tests/apple.rs"

[[test]]
name = "polyfill"
path = "tests/polyfill.rs"

[[test]]
name = "web"
path = "tests/web.rs"