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#[cfg(all(not(feature = "force-inprocess"), target_os = "macos"))]
40pub use macos::set_bootstrap_prefix;
41
42#[cfg(all(not(feature = "force-inprocess"), target_os = "windows"))]
43mod windows;
44#[cfg(all(not(feature = "force-inprocess"), target_os = "windows"))]
45mod os {
46    pub use super::windows::*;
47}
48
49#[cfg(any(
50    feature = "force-inprocess",
51    target_os = "android",
52    target_os = "ios",
53    target_os = "wasi",
54    target_os = "unknown"
55))]
56mod inprocess;
57#[cfg(any(
58    feature = "force-inprocess",
59    target_os = "android",
60    target_os = "ios",
61    target_os = "wasi",
62    target_os = "unknown"
63))]
64mod os {
65    pub use super::inprocess::*;
66}
67
68pub use self::os::{channel, OsOpaqueIpcChannel};
69pub use self::os::{OsIpcChannel, OsIpcOneShotServer, OsIpcReceiver, OsIpcReceiverSet};
70pub use self::os::{OsIpcSelectionResult, OsIpcSender, OsIpcSharedMemory, OsTrySelectError};
71
72#[cfg(test)]
73mod test;