1pub trait WasmNotSendSync: WasmNotSend + WasmNotSync {}
2impl<T: WasmNotSend + WasmNotSync> WasmNotSendSync for T {}
3#[cfg(any(
4 not(target_arch = "wasm32"),
5 all(
6 feature = "fragile-send-sync-non-atomic-wasm",
7 not(target_feature = "atomics")
8 )
9))]
10pub trait WasmNotSend: Send {}
11#[cfg(any(
12 not(target_arch = "wasm32"),
13 all(
14 feature = "fragile-send-sync-non-atomic-wasm",
15 not(target_feature = "atomics")
16 )
17))]
18impl<T: Send> WasmNotSend for T {}
19#[cfg(not(any(
20 not(target_arch = "wasm32"),
21 all(
22 feature = "fragile-send-sync-non-atomic-wasm",
23 not(target_feature = "atomics")
24 )
25)))]
26pub trait WasmNotSend {}
27#[cfg(not(any(
28 not(target_arch = "wasm32"),
29 all(
30 feature = "fragile-send-sync-non-atomic-wasm",
31 not(target_feature = "atomics")
32 )
33)))]
34impl<T> WasmNotSend for T {}
35
36#[cfg(any(
37 not(target_arch = "wasm32"),
38 all(
39 feature = "fragile-send-sync-non-atomic-wasm",
40 not(target_feature = "atomics")
41 )
42))]
43pub trait WasmNotSync: Sync {}
44#[cfg(any(
45 not(target_arch = "wasm32"),
46 all(
47 feature = "fragile-send-sync-non-atomic-wasm",
48 not(target_feature = "atomics")
49 )
50))]
51impl<T: Sync> WasmNotSync for T {}
52#[cfg(not(any(
53 not(target_arch = "wasm32"),
54 all(
55 feature = "fragile-send-sync-non-atomic-wasm",
56 not(target_feature = "atomics")
57 )
58)))]
59pub trait WasmNotSync {}
60#[cfg(not(any(
61 not(target_arch = "wasm32"),
62 all(
63 feature = "fragile-send-sync-non-atomic-wasm",
64 not(target_feature = "atomics")
65 )
66)))]
67impl<T> WasmNotSync for T {}