harper_core/sync.rs
1#[cfg(not(feature = "concurrent"))]
2pub use std::rc::Rc as Lrc;
3#[cfg(feature = "concurrent")]
4pub use std::sync::Arc as Lrc;
5
6#[cfg(not(feature = "concurrent"))]
7pub trait LSend {}
8
9#[cfg(not(feature = "concurrent"))]
10impl<T: ?Sized> LSend for T {}
11
12#[cfg(feature = "concurrent")]
13pub trait LSend: Send + Sync {}
14
15#[cfg(feature = "concurrent")]
16impl<T: Send + Sync + ?Sized> LSend for T {}