Skip to main content

Module final_compile

Module final_compile 

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

Re-exports§

pub use crate::rsjs::build::FINAL_PHASE_ENV;
pub use crate::rsjs::build::FINAL_PLAN_FILE_HASH_ENV;
pub use crate::rsjs::build::FINAL_PLAN_ID_ENV;
pub use crate::rsjs::build::FINAL_PLAN_PATH_ENV;

Structs§

FinalCargoArtifactReport
Path-free report for one final Cargo artifact.
FinalCargoOutput
Successful plan-sensitive Cargo output.
FinalCargoRequest
One root-specific final Cargo invocation.

Enums§

FinalCargoError
Final-compilation validation or Cargo failure.
ManagedPathError
Failure to confine a final-build path beneath its trusted generated-output boundary using only ordinary directories and regular files.

Traits§

FinalCargoPlan
Linked-plan variants accepted by the final Cargo runner.

Functions§

run_final_cargo
Validate the plan and run one final, compile-only Cargo invocation.