Trait Compiler

Source
pub trait Compiler {
    // Required methods
    fn compile(
        &self,
        project_path: &Path,
        output_path: &Path,
        options: &CompilerOptions,
    ) -> Result<PathBuf>;
    fn check_available(&self) -> bool;
    fn version(&self) -> Result<String>;
}
Expand description

Compiler abstraction

Required Methods§

Source

fn compile( &self, project_path: &Path, output_path: &Path, options: &CompilerOptions, ) -> Result<PathBuf>

Compile a Rust project to WASM

Source

fn check_available(&self) -> bool

Check if the compiler is available

Source

fn version(&self) -> Result<String>

Get compiler version

Implementors§