Skip to main content

compile_target

Function compile_target 

Source
pub fn compile_target<C: Compiler<CompilerContract = Contract>>(
    target_path: &Path,
    project: &Project<C>,
    quiet: bool,
) -> Result<ProjectCompileOutput<C>>
where DynamicTestLinkingPreprocessor: Preprocessor<C>,
Expand description

Compiles target file path.

If quiet is set, the compilation reporter’s progress/status output is suppressed. (When not suppressed, that output is emitted to stderr; see with_compilation_reporter.)

Note: this expects the target_path to be absolute