Function forc_pkg::build

source ·
pub fn build(
    plan: &BuildPlan,
    target: BuildTarget,
    profile: &BuildProfile,
    outputs: &HashSet<NodeIx>,
    const_inject_map: &HashMap<Pinned, Vec<(String, ConfigTimeConstant)>>
) -> 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.