Skip to main content

Module build

Module build 

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

CargoArtifactCollector
Strict Cargo JSON collector. It never searches a target directory.
CargoArtifactExpectation
Exact caller-provided selector for one wrapper unit.
CargoArtifactTarget
Target portion of a Cargo compiler-artifact message.
CargoCompilerArtifact
One strictly parsed Cargo compiler-artifact message.
DescriptorCargoArtifactReport
Path-free summary of one descriptor Cargo artifact.
DescriptorCargoLease
Opaque lease retaining exclusive authority over one descriptor target.
DescriptorCargoReport
Safe descriptor-run diagnostics that remain valid after its leases drop.
DescriptorCargoRequest
One exact descriptor-phase Cargo invocation.
DescriptorCargoUnitId
Stable 32-byte descriptor Cargo-unit identity.
DescriptorCargoUnitReport
Path-free summary of one validated descriptor unit.
DescriptorCodegenSidecar
Descriptor-only rustc policy recorded beside each exact unit object.
DescriptorDependencyArtifact
One exact rustc --extern input retained for Cargo-artifact joining.
DescriptorEnvironmentDependency
One environment variable tracked by rustc’s dep-info protocol.
DescriptorOutDirDependency
One rustc-declared source dependency beneath a build script’s OUT_DIR.
DescriptorSourceDependency
One rustc-declared source dependency outside the unit’s exact OUT_DIR.
DescriptorUnitSidecar
FinalUnitCoordinate
Phase-invariant identity used to join a final rustc invocation to one descriptor Cargo unit.
FinalUnitMap
Content-addressed descriptor-to-final unit map consumed by final-v2.
FinalUnitMapEntry
One exact descriptor-to-final Cargo-unit mapping.
NormalizedRustcInvocation
Path-free semantic inputs plus host-local join coordinates for one descriptor-phase rustc unit.
ValidatedDescriptorUnit
One validated wrapper sidecar and its exact descriptor object.
WrittenFinalUnitMap
Exact file written for a final Cargo invocation.

Enums§

ArtifactMatchError
Failure to join Cargo-enumerated artifacts to wrapper units.
CargoMessageError
Cargo JSON protocol failure.
DescriptorCargoRunError
Descriptor Cargo process/orchestration failure.
DescriptorSidecarError
Validation failure for one explicit descriptor staging directory.
FinalUnitMapError
Failure to build a phase-invariant final unit map.
LinkManifestAssemblyError
Failure while constructing one root’s exact external link manifest.
UnitArtifactJoinError
Freshness-join failure between wrapper sidecars and Cargo JSON.
WrapperError
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§

DescriptorCargoRun
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-artifact message.
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_WRAPPER protocol.
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.