ipc_channel/platform/
mod.rs

1// Copyright 2015 The Servo Project Developers. See the COPYRIGHT
2// file at the top-level directory of this distribution.
3//
4// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7// option. This file may not be copied, modified, or distributed
8// except according to those terms.
9
10#[cfg(all(
11    not(feature = "force-inprocess"),
12    any(
13        target_os = "linux",
14        target_os = "openbsd",
15        target_os = "freebsd",
16        target_os = "illumos",
17    )
18))]
19mod unix;
20#[cfg(all(
21    not(feature = "force-inprocess"),
22    any(
23        target_os = "linux",
24        target_os = "openbsd",
25        target_os = "freebsd",
26        target_os = "illumos",
27    )
28))]
29mod os {
30    pub use super::unix::*;
31}
32
33#[cfg(all(not(feature = "force-inprocess"), target_os = "macos"))]
34mod macos;
35#[cfg(all(not(feature = "force-inprocess"), target_os = "macos"))]
36mod os {
37    pub use super::macos::*;
38}
39
40#[cfg(all(not(feature = "force-inprocess"), target_os = "windows"))]
41mod windows;
42#[cfg(all(not(feature = "force-inprocess"), target_os = "windows"))]
43mod os {
44    pub use super::windows::*;
45}
46
47#[cfg(any(
48    feature = "force-inprocess",
49    target_os = "android",
50    target_os = "ios",
51    target_os = "wasi",
52    target_os = "unknown"
53))]
54mod inprocess;
55#[cfg(any(
56    feature = "force-inprocess",
57    target_os = "android",
58    target_os = "ios",
59    target_os = "wasi",
60    target_os = "unknown"
61))]
62mod os {
63    pub use super::inprocess::*;
64}
65
66pub use self::os::{channel, OsOpaqueIpcChannel};
67pub use self::os::{OsIpcChannel, OsIpcOneShotServer, OsIpcReceiver, OsIpcReceiverSet};
68pub use self::os::{OsIpcSelectionResult, OsIpcSender, OsIpcSharedMemory};
69
70#[cfg(test)]
71mod test;