mxc-sdk 1.2.0

Importable library for starting MXC sandboxes in-process, with streaming stdio.
Documentation
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

// Platform-agnostic modules (shared by wxc-exec, lxc-exec, mxc-exec-mac
// and every backend crate).
pub mod audit;
pub mod cmdline;
mod common_request_ir;
pub(crate) mod config_deserialize;
pub mod config_parser;
pub mod default_env;
pub mod encoding;
pub mod error;
pub mod exec_stream;
pub mod filesystem_access;
pub mod filesystem_canonical;
pub mod filesystem_object;
pub(crate) mod filesystem_probe;
pub mod filesystem_resolve;
pub mod hashing;
pub mod id;
pub mod log_symbols;
pub mod logger;
#[cfg(all(feature = "microvm", any(target_os = "windows", target_os = "linux")))]
pub mod microvm_staging;
pub mod models;
pub(crate) mod module_lifetime;
pub mod mxc_error;
pub mod network_blocks;
pub(crate) mod network_parser;
pub(crate) mod policy_failures;
pub mod policy_identity;
pub(crate) mod policy_preparation;
pub use network_parser::host_is_canonical_loopback;
pub mod proxy_env;
pub mod sandbox_process;
pub mod script_runner;
#[doc(hidden)]
pub mod sdk_input;
pub(crate) mod splice;
pub mod state_aware_backend;
pub mod state_aware_binding;
pub mod state_aware_dispatch;
pub(crate) mod state_aware_input;
pub mod state_aware_operation;
pub mod state_aware_request;
pub mod telemetry;
pub mod ui_policy;
pub mod validator;

// Reusable DTOs shared by exact-contract adapters and typed SDK builders.
// Public only for the cross-crate Rust SDK adapter; not an external wire API.
pub(crate) mod wire;
pub(crate) mod worker_gate;

// Adapters that map specific JSON contracts into the internal config input.
pub(crate) mod config_contract_adapters;

// Thin Windows-only helpers that are not backend-specific.
#[cfg(target_os = "windows")]
pub mod api_set;
#[cfg(target_os = "windows")]
pub(crate) mod com_apartment;
#[cfg(target_os = "windows")]
pub mod diagnostic;
#[cfg(target_os = "windows")]
pub mod filesystem_security;
#[cfg(target_os = "windows")]
pub mod process_util;
#[cfg(target_os = "windows")]
pub mod string_util;
#[cfg(target_os = "windows")]
pub mod system_dir;

// Unix-specific modules (shared by the Seatbelt and Bubblewrap backends).
#[cfg(unix)]
pub mod interruptible_reader;

// Signal-mask handling for child processes, shared by the LXC and Bubblewrap
// backends.
#[cfg(target_os = "linux")]
pub mod termination_signals;

// Host-path resolution shared by Linux backends and Seatbelt.
#[cfg(any(target_os = "linux", target_os = "macos"))]
pub(crate) mod filesystem_symlink;

/// Crate-wide lock and guards for tests that mutate process environment.
#[cfg(all(test, target_os = "windows"))]
pub(crate) mod test_env;