#[cfg(target_os = "linux")]
#[macro_use]
extern crate lazy_static;
#[cfg(target_os = "linux")]
#[macro_use]
extern crate log;
pub mod configuration;
pub mod result;
pub mod syscall_filter;
mod util;
#[cfg(target_os = "linux")]
mod linux;
#[cfg(target_os = "macos")]
mod macos;
#[cfg(target_os = "linux")]
pub type SandboxImplementation = linux::LinuxSandbox;
#[cfg(target_os = "macos")]
pub type SandboxImplementation = macos::MacOSSandbox;
#[cfg(not(any(target_os = "macos", target_os = "linux")))]
compile_error!("TAbox not supported on your operating system");
#[cfg(test)]
mod tests;
pub type Result<T> = std::result::Result<T, anyhow::Error>;
pub trait Sandbox {
fn run(config: configuration::SandboxConfiguration) -> Result<Self>
where
Self: Sized;
fn wait(self) -> Result<result::SandboxExecutionResult>;
fn is_secure() -> bool;
}