ipc_channel/
lib.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#![doc = include_str!("../README.md")]
11//!
12//! # Features
13//! ## `force-inprocess`
14//!
15//! Force the `inprocess` backend to be used instead of the OS specific backend.
16//! The `inprocess` backend is a dummy back-end, that behaves like the real ones,
17//! but doesn't actually work between processes.
18
19#[cfg(any(
20    feature = "force-inprocess",
21    target_os = "windows",
22    target_os = "android",
23    target_os = "ios"
24))]
25#[cfg(all(not(feature = "force-inprocess"), target_os = "linux"))]
26#[cfg(feature = "async")]
27use futures;
28
29#[cfg(feature = "async")]
30pub mod asynch;
31
32#[cfg(all(not(feature = "force-inprocess"), target_os = "windows"))]
33extern crate windows;
34
35pub mod ipc;
36pub mod platform;
37pub mod router;
38
39#[cfg(test)]
40mod test;
41
42pub use bincode::{Error, ErrorKind};