[package]
name = "cross-runtime"
version = "0.1.0"
edition = "2024"
rust-version = "1.85"
license = "MIT OR Apache-2.0"
description = "One task, timer, and runtime surface across native Tokio and browser WebAssembly"
repository = "https://github.com/tekacs/xrt"
keywords = ["async", "runtime", "tokio", "wasm", "web"]
categories = ["asynchronous", "wasm"]
[dependencies]
[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 = "0.3"
futures-util = "0.3"
wasmtimer = "0.4"
web-task = "1.1.3"
[dev-dependencies]
tokio = { version = "1", features = ["macros"] }
wasm-bindgen-test = "0.3"