Function eflint_to_json::compile

source ·
pub fn compile(
    input_path: &Path,
    output: impl Write,
    compiler_path: Option<&Path>,
) -> Result<(), Error>
Expand description

Compiles a (tree of) .eflint files using Olaf’s eflint-to-json compiler.

Resolves relative paths in the files as relative to the file in which they occur.

§Arguments

  • input: The input file to compile. Any #includes and #requires will be handled, building a tree of files to import.
  • output: Some writer to compile to.
  • compiler: If given, will not download a compiler to /tmp/eflint-to-json but will instead use the given one.

§Errors

This function may error for a plethora of reasons.