|
2 | 2 | //! `__thread_local_internal` macro does not seem to be exported properly when using cfg_if |
3 | 3 | #![unstable(feature = "thread_local_internals", reason = "should not be necessary", issue = "none")] |
4 | 4 |
|
5 | | -#[cfg(all(target_thread_local, not(all(target_family = "wasm", not(target_feature = "atomics")))))] |
| 5 | +#[cfg(all( |
| 6 | + target_thread_local, |
| 7 | + not(target_family = "postgres"), |
| 8 | + not(all(target_family = "wasm", not(target_feature = "atomics"))) |
| 9 | +))] |
6 | 10 | mod fast_local; |
7 | 11 | #[cfg(all( |
8 | 12 | not(target_thread_local), |
| 13 | + not(target_family = "postgres"), |
9 | 14 | not(all(target_family = "wasm", not(target_feature = "atomics"))) |
10 | 15 | ))] |
11 | 16 | mod os_local; |
12 | | -#[cfg(all(target_family = "wasm", not(target_feature = "atomics")))] |
| 17 | +#[cfg(any( |
| 18 | + all(target_family = "wasm", not(target_feature = "atomics")), |
| 19 | + target_family = "postgres" |
| 20 | +))] |
13 | 21 | mod static_local; |
14 | 22 |
|
15 | 23 | #[cfg(not(test))] |
16 | 24 | cfg_if::cfg_if! { |
17 | | - if #[cfg(all(target_family = "wasm", not(target_feature = "atomics")))] { |
| 25 | + if #[cfg(any(target_family = "postgres", all(target_family = "wasm", not(target_feature = "atomics"))))] { |
18 | 26 | #[doc(hidden)] |
19 | 27 | pub use static_local::statik::Key; |
20 | | - } else if #[cfg(all(target_thread_local, not(all(target_family = "wasm", not(target_feature = "atomics")))))] { |
| 28 | + } else if #[cfg(all(target_thread_local, not(target_family = "postgres"), not(all(target_family = "wasm", not(target_feature = "atomics")))))] { |
21 | 29 | #[doc(hidden)] |
22 | 30 | pub use fast_local::fast::Key; |
23 | 31 | } else if #[cfg(all(not(target_thread_local), not(all(target_family = "wasm", not(target_feature = "atomics")))))] { |
|
0 commit comments