Trait BuildStep

Source
pub trait BuildStep {
    // Required methods
    fn name(&self) -> &str;
    fn hash(&self, hasher: &mut Box<dyn Hasher>);
    fn execute(
        &mut self,
        build: &Build,
        result: &mut BuildResult,
    ) -> Result<(), BuildStepError>;
}

Required Methods§

Source

fn name(&self) -> &str

Source

fn hash(&self, hasher: &mut Box<dyn Hasher>)

Generate a hash which uniquely identifies the build options

Source

fn execute( &mut self, build: &Build, result: &mut BuildResult, ) -> Result<(), BuildStepError>

Implementors§