Skip to main content

native_platforms_of_context

Function native_platforms_of_context 

Source
pub fn native_platforms_of_context(
    ctx: &str,
    table: &UnitTable,
    unit_tables: &HashMap<String, UnitTable>,
    unit_consumes: &HashMap<String, Vec<String>>,
    unit_consumes_aliases: &HashMap<String, HashMap<String, String>>,
    unit_flattened: &HashMap<String, HashMap<String, String>>,
    with_derived: bool,
) -> BTreeMap<Platform, String>
Expand description

v0.19 (decision 0017): the native platforms a context’s in-process closure commits it to: every unit whose provider its compose would instantiate (local providers’ given recursion plus the capabilities its handlers reference), mapped through bynk_check::firstparty::platform_of. Each platform carries an exemplar unit for the diagnostic message. Service consumes edges (RPC under workers) do not contribute: only the provider-instantiation walk, which is in-process by construction.