Expand description
Hidden building blocks for the RSJS descriptor compilation.
This module intentionally does not drive the normal proa build command.
It provides the rustc-wrapper half of a future two-compilation pipeline and
a strict collector for the Cargo JSON produced by that pipeline.
Structs§
- Cargo
Artifact Collector - Strict Cargo JSON collector. It never searches a target directory.
- Cargo
Artifact Expectation - Exact caller-provided selector for one wrapper unit.
- Cargo
Artifact Target - Target portion of a Cargo
compiler-artifactmessage. - Cargo
Compiler Artifact - One strictly parsed Cargo
compiler-artifactmessage. - Descriptor
Cargo Artifact Report - Path-free summary of one descriptor Cargo artifact.
- Descriptor
Cargo Lease - Opaque lease retaining exclusive authority over one descriptor target.
- Descriptor
Cargo Report - Safe descriptor-run diagnostics that remain valid after its leases drop.
- Descriptor
Cargo Request - One exact descriptor-phase Cargo invocation.
- Descriptor
Cargo Unit Id - Stable 32-byte descriptor Cargo-unit identity.
- Descriptor
Cargo Unit Report - Path-free summary of one validated descriptor unit.
- Descriptor
Codegen Sidecar - Descriptor-only rustc policy recorded beside each exact unit object.
- Descriptor
Dependency Artifact - One exact rustc
--externinput retained for Cargo-artifact joining. - Descriptor
Environment Dependency - One environment variable tracked by rustc’s dep-info protocol.
- Descriptor
OutDir Dependency - One rustc-declared source dependency beneath a build script’s
OUT_DIR. - Descriptor
Source Dependency - One rustc-declared source dependency outside the unit’s exact
OUT_DIR. - Descriptor
Unit Sidecar - Final
Unit Coordinate - Phase-invariant identity used to join a final rustc invocation to one descriptor Cargo unit.
- Final
Unit Map - Content-addressed descriptor-to-final unit map consumed by
final-v2. - Final
Unit MapEntry - One exact descriptor-to-final Cargo-unit mapping.
- Normalized
Rustc Invocation - Path-free semantic inputs plus host-local join coordinates for one descriptor-phase rustc unit.
- Validated
Descriptor Unit - One validated wrapper sidecar and its exact descriptor object.
- Written
Final Unit Map - Exact file written for a final Cargo invocation.
Enums§
- Artifact
Match Error - Failure to join Cargo-enumerated artifacts to wrapper units.
- Cargo
Message Error - Cargo JSON protocol failure.
- Descriptor
Cargo RunError - Descriptor Cargo process/orchestration failure.
- Descriptor
Sidecar Error - Validation failure for one explicit descriptor staging directory.
- Final
Unit MapError - Failure to build a phase-invariant final unit map.
- Link
Manifest Assembly Error - Failure while constructing one root’s exact external link manifest.
- Unit
Artifact Join Error - Freshness-join failure between wrapper sidecars and Cargo JSON.
- Wrapper
Error - Hidden rustc-wrapper failure.
Constants§
- CARGO_
UNIT_ ID_ ENV - Stable, lowercase-hex Cargo-unit identity exposed to RSJS proc macros.
- COMPONENT_
DESCRIPTOR_ DIRS_ ENV - Legacy proc-macro filesystem descriptor fallback; not identity-safe.
- DESCRIPTOR_
PHASE_ ENV - Marks rustc as running the descriptor phase rather than final compilation.
- DESCRIPTOR_
STAGING_ DIR_ ENV - Explicit host-local staging directory for descriptor objects and sidecars.
- DESCRIPTOR_
TARGET_ DIR_ ENV - Exact runner-owned Cargo target directory for descriptor compilation.
- DESCRIPTOR_
TARGET_ POLICY_ VERSION - Filesystem/output policy for persistent descriptor Cargo targets.
- DESCRIPTOR_
UNIT_ SIDECAR_ SCHEMA_ VERSION - Schema version of
DescriptorUnitSidecar. - FINAL_
CARGO_ UNIT_ STATUS_ ENV - Explicit final-wrapper result visible to proc macros.
- FINAL_
CARGO_ UNIT_ STATUS_ MAPPED - The final rustc invocation matched exactly one descriptor unit.
- FINAL_
CARGO_ UNIT_ STATUS_ UNMAPPED - No descriptor unit matched; an RSJS macro must fail rather than guess.
- FINAL_
PHASE_ ENV - Marks rustc as running the linked final phase.
- FINAL_
PLAN_ FILE_ HASH_ ENV - Tagged SHA-256 digest of the exact linked-plan bytes.
- FINAL_
PLAN_ ID_ ENV - Lower-case hexadecimal strong plan identity.
- FINAL_
PLAN_ PATH_ ENV - Exact content-addressed link-plan path consumed by final macro expansion.
- FINAL_
TARGET_ DIR_ ENV - Exact invocation- and wrapper-policy-scoped final target owned by the final Cargo runner.
- FINAL_
UNIT_ MAP_ HASH_ ENV - SHA-256 of the exact final unit-map bytes.
- FINAL_
UNIT_ MAP_ PATH_ ENV - Exact content-addressed descriptor-to-final unit map.
- FINAL_
UNIT_ MAP_ SCHEMA_ VERSION - Schema version of
FinalUnitMap. - FINAL_
WRAPPER_ POLICY_ VERSION - Version of the wrapper-owned final rustc argument/environment policy.
- SOURCE_
EXCLUSION_ DIR_ ENV - Exact generated subtree excluded from package-source closure hashing in both descriptor and final compilation.
- WRAPPER_
MODE_ DESCRIPTOR_ V1 - The only wrapper protocol accepted by this version of the CLI.
- WRAPPER_
MODE_ ENV - Enables the hidden descriptor rustc-wrapper dispatch.
- WRAPPER_
MODE_ FINAL_ V2 - Final-compilation wrapper protocol that restores descriptor Cargo-unit IDs.
Traits§
- Descriptor
Cargo Run - A descriptor Cargo run whose mutable target remains exclusively leased.
Functions§
- descriptor_
run_ report - Borrow a path-free diagnostic report while retaining the run lease.
- finish_
descriptor_ run - Consume a descriptor run without linking and return only path-free data.
- join_
cargo_ enumerated_ descriptor_ units - Join every descriptor unit for which Cargo emitted a distinct
compiler-artifactmessage. - join_
descriptor_ units_ to_ cargo_ artifacts - Join wrapper units to Cargo messages from the same invocation using exact manifest/source identity plus the realized target, crate-type, and feature sets.
- link_
artifact_ content_ hash - Hash one exact Cargo-enumerated artifact using the link-manifest domain.
- load_
descriptor_ unit_ sidecars - Load only freshly enumerated wrapper outputs from one explicit staging directory.
- match_
exact_ cargo_ artifacts - Match each descriptor unit to exactly one Cargo-enumerated artifact.
- normalize_
rustc_ invocation - Normalize one rustc invocation without admitting host-local source, dependency, output, sysroot, or linker paths into semantic identity.
- run_
descriptor_ cargo - Run descriptor compilation with the hidden wrapper and collect only invocation-authoritative outputs.
- run_
rustc_ wrapper_ from_ env - Run one invocation received through Cargo’s
RUSTC_WRAPPERprotocol. - rustc_
wrapper_ dispatch_ requested - Return whether the process environment requests hidden wrapper dispatch.
- write_
content_ addressed_ final_ unit_ map - Build and atomically publish a final unit map from validated descriptor sidecars.