Function forc_pkg::build

source · []
pub fn build(
    plan: &BuildPlan,
    profile: &BuildProfile
) -> Result<(Compiled, SourceMap)>
Expand description

Build an entire forc package and return the compiled output.

This compiles all packages (including dependencies) in the order specified by the BuildPlan.

Also returns the resulting sway_core::SourceMap which may be useful for debugging purposes.