Expand description
Fail-closed bridge from the legacy embedded RSJS descriptors to the canonical compiler ABI.
The object transport/linker has already done the important identity work by
the time values reach this module: every definition and outgoing edge is
selected through a rustc relocation. This bridge therefore never treats
struct_name, self_ty, authored_path, asset_id, or a last path segment
as identity authority.
Component schema v9 carries dense latent inbound input metadata. Transport payload v9 joins each client-visible value/callback field to a rustc-checked field projection and exact defining-component relocation. A direct component relocation ID also commits its complete behavior-bearing edge tuple: boundary, site, lifecycle, struct-rest shape, and every ordered field binding. The bridge still rejects graph behavior it cannot represent losslessly; it never invents a nominal type identity or serialization codec from source tokens.
Standalone helper payload v1 contains the concrete parameter/result signature. The adapter hashes that exact contract into the canonical helper descriptor, then preserves every direct helper call through its relocation-resolved witness.
Structs§
- AbiAdapter
Context - Explicit migration policy and relocation-authoritative semantic identities.
- Adapted
Transport Abi - Results for every descriptor in one already linked transport plan.
- Canonical
Descriptor Bridge - A validated canonical envelope plus its build-local relocation table.
- Component
Codegen Bridge - Validated producer-local relocation data needed by final browser codegen.
- Component
Codegen Callback Slot - Producer callback slot joined to its canonical inbound callback value.
- Component
Codegen Direct Node RefAlias - Producer identity for one direct
NodeRef<T>handle alias edge. - Component
Codegen Expression - Producer arena expression to canonical value relocation.
- Component
Codegen Inbound Field - Producer-local identity for one canonical inbound component value.
- Component
Codegen Inbound Node Ref - Producer identity for one required inbound
NodeRef<T>field. - Component
Codegen Inbound Target - Producer signal targeted by one canonical signal-backed inbound use.
- Component
Codegen Payload Handler - Transported parent callback body to canonical value relocation.
- Component
Codegen Signal - Producer signal to canonical value relocation.
- Helper
Codegen Bridge - Validated standalone-helper data needed by final browser codegen.
- Helper
Codegen Param - One exact parameter in a standalone helper’s transported signature.
- Helper
Codegen Signature - Complete transported signature needed to validate one final browser helper.
- Resolved
Semantic Path - Normalized semantic identity obtained from an authoritative defining-item resolver.
- Unsupported
Descriptor - Fail-closed compatibility report for one valid legacy descriptor.
Enums§
- AbiAdapter
Error - Malformed data or a violated exact-link invariant.
- AbiBridge
Result - One bridge outcome.
- Compatibility
Gap - Behavior-affecting information absent from the legacy/canonical boundary.
- Component
Fragment Root - Producer view-root contract available to final component-fragment codegen.
- Component
Node RefBind Target - Rust-checked DOM family for the unique terminal binding of an inbound
NodeRef<T>handle. - Helper
Codegen Body - Validated relocation-resolved Client IR for a standalone helper.
- Resolved
Transport Witness - Exact build-local relocation selected for one canonical witness ID.
Functions§
- adapt_
component - Convert one relocation-linked component payload.
- adapt_
helper - Convert one relocation-linked standalone helper payload.
- adapt_
transport_ plan - Convert all descriptors in one exact transport link plan.
- canonical_
legacy_ json_ hash - Hash a legacy JSON value after recursively sorting all object keys.
- validate_
component_ codegen_ bridge - Validate producer-local codegen coordinates against their canonical component graph.
- validate_
helper_ codegen_ bridge - Validate that final helper codegen data is the exact concrete realization of its canonical semantic descriptor.