Skip to main content

emit

Function emit 

Source
pub fn emit(
    module: &PioModule<BalancedNetwork>,
    format: TargetFormat,
    destination: Destination,
) -> Result<EmitResult, Error>
Expand description

Emit a parsed module to format through a destination: the one output operation over file, memory, and (for the directory formats) folder output. Every text target commits a single artifact — a path destination names the exact file, a memory destination names the artifact — staged and renamed into place so a failed emission never exposes a partial target. The result carries the complete artifact inventory and the serializer’s findings.

§Errors

The format serializer or destination refused the operation. failures.