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§
Sourcefn compile(
&self,
project_path: &Path,
output_path: &Path,
options: &CompilerOptions,
) -> Result<PathBuf>
fn compile( &self, project_path: &Path, output_path: &Path, options: &CompilerOptions, ) -> Result<PathBuf>
Compile a Rust project to WASM
Sourcefn check_available(&self) -> bool
fn check_available(&self) -> bool
Check if the compiler is available