pub trait BuildSource {
// Required methods
fn name(&self) -> &str;
fn hash(&self, target: &mut Box<dyn Hasher>);
fn setup(&mut self) -> Result<(), BuildStepError>;
fn local_directory(&self) -> &PathBuf;
fn cleanup(&mut self);
}
Required Methods§
Sourcefn hash(&self, target: &mut Box<dyn Hasher>)
fn hash(&self, target: &mut Box<dyn Hasher>)
Generate a unique hash which identifies the source and possible changes