Function compile_with_output_path

Source
pub fn compile_with_output_path(
    input_slint_file_path: impl AsRef<Path>,
    output_rust_file_path: impl AsRef<Path>,
    config: CompilerConfiguration,
) -> Result<Vec<PathBuf>, CompileError>
Expand description

Similar to compile_with_config, but meant to be used independently of cargo.

Will compile the input file and write the result in the given output file.

Both input_slint_file_path and output_rust_file_path should be absolute paths.

Doesn’t print any cargo messages.

Returns a list of all input files that were used to generate the output file. (dependencies)