Skip to main content

CompilerBackend

Trait CompilerBackend 

Source
pub(crate) trait CompilerBackend {
    // Required methods
    fn check(
        &self,
        entry_file: &Path,
        deps: &HashMap<String, PathBuf>,
    ) -> Result<(), DealerError>;
    fn build(
        &self,
        entry_file: &Path,
        deps: &HashMap<String, PathBuf>,
        output_dir: &Path,
        package_name: &str,
        rusttime_path: &Path,
    ) -> Result<(), DealerError>;
    fn metadata(
        &self,
        entry_file: &Path,
    ) -> Result<ProjectMetadata, DealerError>;
}

Required Methods§

Source

fn check( &self, entry_file: &Path, deps: &HashMap<String, PathBuf>, ) -> Result<(), DealerError>

Source

fn build( &self, entry_file: &Path, deps: &HashMap<String, PathBuf>, output_dir: &Path, package_name: &str, rusttime_path: &Path, ) -> Result<(), DealerError>

Source

fn metadata(&self, entry_file: &Path) -> Result<ProjectMetadata, DealerError>

Implementors§