Expand description
Plan-sensitive final Cargo compilation and execution for RSJS roots.
The final compiler is intentionally separate from descriptor compilation.
A content-addressed plan is validated before Cargo starts, its PlanId is
supplied to the final rustc wrapper. Artifacts share a wrapper-policy target
namespace; generated RSJS witnesses expose the exact plan/map fingerprints
to Cargo so only plan-sensitive units are invalidated.
Structs§
- Final
Cargo Artifact Report - Path-free report for one final Cargo artifact.
- Final
Cargo Output - Successful plan-sensitive Cargo output.
- Final
Cargo Request - One root-specific final Cargo invocation.
- Final
Snapshot Lease - Shared hold on one published executable snapshot.
Enums§
- Final
Cargo Error - Final-compilation validation or Cargo failure.
- Managed
Path Error - Failure to confine a final-build path beneath its trusted generated-output boundary using only ordinary directories and regular files.
Constants§
- 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.
Traits§
- Final
Cargo Plan - Linked-plan variants accepted by the final Cargo runner.
Functions§
- prune_
final_ artifact_ snapshot - Remove one executable snapshot published by this module unless another process still holds its lease. Returns whether the snapshot was removed.
- run_
final_ cargo - Validate the plan and run one final, compile-only Cargo invocation.
- snapshot_
wrapper_ executable - Publish the exact wrapper bytes into the generated-output CAS before Cargo is allowed to reopen an executable path.