[package]
edition = "2024"
rust-version = "1.85"
name = "cross-runtime"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "One task, timer, and runtime surface across native Tokio and browser WebAssembly"
readme = "README.md"
keywords = [
"async",
"runtime",
"tokio",
"wasm",
"web",
]
categories = [
"asynchronous",
"wasm",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/tekacs/xrt"
[lib]
name = "cross_runtime"
path = "src/lib.rs"
[[test]]
name = "native"
path = "tests/native.rs"
[[test]]
name = "web"
path = "tests/web.rs"
[dependencies]
[dev-dependencies.tokio]
version = "1"
features = ["macros"]
[dev-dependencies.wasm-bindgen-test]
version = "0.3"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1"
features = [
"net",
"rt",
"rt-multi-thread",
"sync",
"time",
]
[target.'cfg(target_arch = "wasm32")'.dependencies.futures-channel]
version = "0.3"
[target.'cfg(target_arch = "wasm32")'.dependencies.futures-util]
version = "0.3"
[target.'cfg(target_arch = "wasm32")'.dependencies.wasmtimer]
version = "0.4"
[target.'cfg(target_arch = "wasm32")'.dependencies.web-task]
version = "1.1.3"