runmat_runtime/context/legacy.rs
1//! Sole migration boundary for ambient runtime APIs.
2//!
3//! R09 routes existing scoped modules through the active [`RuntimeContext`]
4//! here. New semantic code must receive `&RuntimeContext` explicitly. The
5//! checked RM-1064 inventory assigns complete removal of this bridge to R29.
6
7use super::{scope::active_runtime_context, RuntimeContext};
8
9pub fn active() -> Option<RuntimeContext> {
10 active_runtime_context()
11}
12
13pub(crate) fn error_namespace() -> Option<String> {
14 active_runtime_context().map(|context| context.error_namespace())
15}