gaol/
lib.rs

1// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2// file at the top-level directory of this distribution and at
3// http://rust-lang.org/COPYRIGHT.
4//
5// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8// option. This file may not be copied, modified, or distributed
9// except according to those terms.
10
11#[macro_use]
12extern crate log;
13
14extern crate libc;
15
16pub mod profile;
17pub mod sandbox;
18
19pub mod platform {
20    #[cfg(any(target_os="android", target_os="linux"))]
21    pub use platform::linux::{ChildSandbox, Operation, Sandbox};
22    #[cfg(target_os="macos")]
23    pub use platform::macos::{ChildSandbox, Operation, Sandbox};
24    #[cfg(target_os="freebsd")]
25    pub use platform::freebsd::{ChildSandbox, Operation, Sandbox};
26    #[cfg(any(target_os="android", target_os="linux", target_os="macos", target_os="freebsd"))]
27    pub use platform::unix::process::{self, Process};
28
29    #[cfg(any(target_os="android", target_os="linux"))]
30    pub mod linux;
31    #[cfg(target_os="macos")]
32    pub mod macos;
33    #[cfg(target_os="freebsd")]
34    pub mod freebsd;
35    #[cfg(any(target_os="android", target_os="linux", target_os="macos", target_os="freebsd"))]
36    pub mod unix;
37}
38