Skip to main content

runmat_runtime/context/
mod.rs

1//! Explicit, session-owned runtime capabilities and invocation state.
2//!
3//! [`RuntimeContext`] is the one context propagated by Core, the VM, nested
4//! calls, and future native/foreign/parallel adapters. Legacy ambient APIs are
5//! migrated through [`legacy`] and must not become new semantic dependencies.
6
7mod capability;
8mod runtime;
9mod scope;
10mod services;
11mod state;
12
13pub mod legacy;
14
15pub use capability::{RuntimeCapability, RuntimeCapabilityError};
16pub use runtime::{
17    RuntimeContext, RuntimeLanguageMode, DEFAULT_CALLSTACK_LIMIT, DEFAULT_ERROR_NAMESPACE,
18};
19pub use scope::{ContextFuture, RuntimeContextGuard};
20pub use services::{
21    ForeignCall, HostInteraction, NativeCapability, ParallelCapability, RuntimeAccelerationService,
22    RuntimeBuiltinService, RuntimeCallRequest, RuntimeCallService, RuntimeErrorService,
23    RuntimeForeignService, RuntimeHostService, RuntimeNativeService, RuntimeObjectService,
24    RuntimeParallelResources, RuntimeParallelService, RuntimePlacementService, RuntimeServicePorts,
25    RuntimeWorkspaceService,
26};
27pub(crate) use state::RuntimeContextState;