mxc-sdk 1.0.0

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

//! Exact version identities and lifecycle metadata for MXC configuration
//! contracts.
//!
//! This module provides the dependency-light boundary used to select a
//! configuration contract from raw JSON source. It owns exact version matching,
//! contract lifecycle metadata, and version declaration probing.
//!
//! The version probe validates only the required `version` declaration. It does
//! not validate the remainder of the selected configuration contract.
//!
//! Contract values may also be constructed by trusted typed producers such as
//! the version-specific Rust policy builders. `OptionalField::present` marks an
//! explicitly present member, while `Default` represents omission; constructed
//! requests still pass through the version adapter and shared semantic
//! validation.
//!
//! This module must not depend on MXC runtime, execution-engine, or containment
//! backend modules. The production configuration parser uses the registry and
//! exact request types for authoritative version-specific dispatch, including
//! the development contract's narrow phase probe for trailing CLI commands.

mod registry;
#[cfg(all(test, feature = "schema-gen"))]
mod schema_test_support;
mod version;

pub mod dev;
pub mod published;

pub use registry::{
    descriptor, supported_versions, ContractDescriptor, ContractRequestRoot, ContractStatus,
    CONTRACTS,
};
pub use version::{probe_version, ContractVersion, ContractVersion::*, VersionProbeError};