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.

//! `seatbelt_common` — shared library for the macOS sandbox backend.
//!
//! - [`profile_builder`] formats prepared inputs without host discovery, so it
//!   is unit-tested on every host.
//! - macOS-only preparation resolves paths and discovers host directories.
//! - [`seatbelt_policy`] owns the backend's network invariants and effective-
//!   policy helpers. Also platform-agnostic, so the rules are unit-tested
//!   everywhere even though only macOS can execute them.
//! - [`default_env`] resolves the schema-0.9 default `process.env` block.
//!   Platform-agnostic for the same reason.
//! - [`capture_analysis`] parses `captureDenials` log reports; platform-agnostic
//!   so it is unit-tested everywhere.
//! - `run_marker` finds every process in a run for cleanup (macOS only).
//! - `seatbelt_runner` is gated to `target_os = "macos"` since it calls
//!   `sandbox_init()`.

#[cfg_attr(not(target_os = "macos"), allow(dead_code))]
pub(crate) mod capture_analysis;
pub mod default_env;
pub mod profile_builder;
pub mod seatbelt_policy;

#[cfg(target_os = "macos")]
pub(crate) mod denial_capture;
#[cfg(target_os = "macos")]
pub(crate) mod profile_preparation;
#[cfg(target_os = "macos")]
mod run_marker;
#[cfg(target_os = "macos")]
pub mod seatbelt_runner;