web_spawn/
lib.rs

1#![doc = include_str!("../README.md")]
2
3#[cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))]
4mod wasm;
5
6#[cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))]
7pub use wasm::*;
8
9#[cfg(not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none"))))]
10pub use std::thread::{Builder, JoinHandle, spawn};