Skip to main content

compile

Function compile 

Source
pub fn compile(
    contents: String,
    filename: &str,
    debug: bool,
    resolver: &ImportResolver,
) -> CompileOutput
Expand description

Compiles contents and everything it imports into one program.

resolver says where a library import reads from: the standard library, and the root of every package the program depends on.