#[cfg(target_family = "wasm")] #[doc(hidden)] pub trait ThreadBound {} #[cfg(target_family = "wasm")] impl ThreadBound for T {} #[cfg(not(target_family = "wasm"))] #[doc(hidden)] pub trait ThreadBound: Send + Sync {} #[cfg(not(target_family = "wasm"))] impl ThreadBound for T {} #[cfg(target_family = "wasm")] pub(crate) type Shared = std::rc::Rc; #[cfg(not(target_family = "wasm"))] pub(crate) type Shared = std::sync::Arc; #[cfg(target_family = "wasm")] pub(crate) type SharedWeak = std::rc::Weak; #[cfg(not(target_family = "wasm"))] pub(crate) type SharedWeak = std::sync::Weak;