Skip to main content

Module abi_adapter

Module abi_adapter 

Source
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§

AbiAdapterContext
Explicit migration policy and relocation-authoritative semantic identities.
AdaptedTransportAbi
Results for every descriptor in one already linked transport plan.
CanonicalDescriptorBridge
A validated canonical envelope plus its build-local relocation table.
ComponentCodegenBridge
Validated producer-local relocation data needed by final browser codegen.
ComponentCodegenCallbackSlot
Producer callback slot joined to its canonical inbound callback value.
ComponentCodegenDirectNodeRefAlias
Producer identity for one direct NodeRef<T> handle alias edge.
ComponentCodegenExpression
Producer arena expression to canonical value relocation.
ComponentCodegenInboundField
Producer-local identity for one canonical inbound component value.
ComponentCodegenInboundNodeRef
Producer identity for one required inbound NodeRef<T> field.
ComponentCodegenInboundTarget
Producer signal targeted by one canonical signal-backed inbound use.
ComponentCodegenPayloadHandler
Transported parent callback body to canonical value relocation.
ComponentCodegenSignal
Producer signal to canonical value relocation.
HelperCodegenBridge
Validated standalone-helper data needed by final browser codegen.
HelperCodegenParam
One exact parameter in a standalone helper’s transported signature.
HelperCodegenSignature
Complete transported signature needed to validate one final browser helper.
ResolvedSemanticPath
Normalized semantic identity obtained from an authoritative defining-item resolver.
UnsupportedDescriptor
Fail-closed compatibility report for one valid legacy descriptor.

Enums§

AbiAdapterError
Malformed data or a violated exact-link invariant.
AbiBridgeResult
One bridge outcome.
CompatibilityGap
Behavior-affecting information absent from the legacy/canonical boundary.
ComponentFragmentRoot
Producer view-root contract available to final component-fragment codegen.
ComponentNodeRefBindTarget
Rust-checked DOM family for the unique terminal binding of an inbound NodeRef<T> handle.
HelperCodegenBody
Validated relocation-resolved Client IR for a standalone helper.
ResolvedTransportWitness
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.