forc_pkg

Function build

Source
pub fn build(
    plan: &BuildPlan,
    target: BuildTarget,
    profile: &BuildProfile,
    outputs: &HashSet<NodeIx>,
    experimental: &[Feature],
    no_experimental: &[Feature],
) -> Result<Vec<(NodeIx, BuiltPackage)>>
Expand description

Build an entire forc package and return the built_package 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.