| 1 | cfg_if::cfg_if! { |
| 2 | if #[cfg(any( |
| 3 | all(target_family = "unix" , not(target_os = "l4re" )), |
| 4 | target_os = "windows" , |
| 5 | target_os = "hermit" , |
| 6 | all(target_os = "wasi" , target_env = "p2" ), |
| 7 | target_os = "solid_asp3" , |
| 8 | ))] { |
| 9 | mod connection { |
| 10 | mod socket; |
| 11 | pub use socket::*; |
| 12 | } |
| 13 | } else if #[cfg(all(target_vendor = "fortanix" , target_env = "sgx" ))] { |
| 14 | mod connection { |
| 15 | mod sgx; |
| 16 | pub use sgx::*; |
| 17 | } |
| 18 | } else if #[cfg(all(target_os = "wasi" , target_env = "p1" ))] { |
| 19 | mod connection { |
| 20 | mod wasip1; |
| 21 | pub use wasip1::*; |
| 22 | } |
| 23 | } else if #[cfg(target_os = "xous" )] { |
| 24 | mod connection { |
| 25 | mod xous; |
| 26 | pub use xous::*; |
| 27 | } |
| 28 | } else if #[cfg(target_os = "uefi" )] { |
| 29 | mod connection { |
| 30 | mod uefi; |
| 31 | pub use uefi::*; |
| 32 | } |
| 33 | } else { |
| 34 | mod connection { |
| 35 | mod unsupported; |
| 36 | pub use unsupported::*; |
| 37 | } |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | pub use connection::*; |
| 42 | |