#[cfg(target_os = "windows")]
pub mod availability;
#[cfg(target_os = "windows")]
mod console_mode;
#[cfg(target_os = "windows")]
mod console_relay;
#[cfg(target_os = "windows")]
mod error;
#[cfg(target_os = "windows")]
mod manager;
#[cfg(target_os = "windows")]
mod manager_legacy;
#[cfg(target_os = "windows")]
mod manager_new;
#[cfg(target_os = "windows")]
mod one_shot;
#[cfg(target_os = "windows")]
mod owned_thread;
#[cfg(target_os = "windows")]
mod pipe_relay;
#[cfg(target_os = "windows")]
mod policy;
#[cfg(target_os = "windows")]
mod process;
#[cfg(target_os = "windows")]
mod process_options;
#[cfg(target_os = "windows")]
mod sandbox;
#[cfg(target_os = "windows")]
pub use sandbox::{spawn_one_shot, spawn_one_shot_pty, OneShotSpawnFailure};
#[cfg(target_os = "windows")]
mod sandbox_id;
#[cfg(target_os = "windows")]
mod state_aware;
#[cfg(target_os = "windows")]
fn use_new_implementation(selection: Option<bool>) -> bool {
#[cfg(feature = "isosession-test-support")]
if selection.is_none() {
return std::env::var_os("MXC_TEST_USE_NEW_ISOSESSION").as_deref()
== Some(std::ffi::OsStr::new("1"));
}
selection.unwrap_or(false)
}
#[cfg(target_os = "windows")]
pub struct IsolationSessionRunner;
#[cfg(target_os = "windows")]
impl IsolationSessionRunner {
pub fn new() -> Self {
Self
}
}
#[cfg(target_os = "windows")]
impl Default for IsolationSessionRunner {
fn default() -> Self {
Self::new()
}
}