Skip to main content

try_run_optimistic_empty_linked_cargo

Function try_run_optimistic_empty_linked_cargo 

Source
pub fn try_run_optimistic_empty_linked_cargo(
    request: &LinkedCargoRequest,
) -> Result<OptimisticLinkedCargoOutcome, LinkedCargoError>
Expand description

Attempt a single-pass final Cargo build against an empty RSJS semantic plan, skipping descriptor compilation, descriptor cache validation, and transport linking when no compiled unit expands an RSJS macro.

Soundness is enforced fail-closed by rsjs_macros: because the empty unit map marks every compiled unit RSJS_FINAL_CARGO_UNIT_STATUS=unmapped-v1, any unit that invokes #[rsjs(...)], #[client], or #[derive(SharedState)] fails compilation immediately and returns NeedsFullLinkedPass.