[][src]Trait daab::Builder

pub trait Builder: Debug {
    type Artifact: Debug;
    fn build(&self, cache: &mut ArtifactResolver) -> Self::Artifact;
}

Represents a builder for an artifact.

Each builder is supposed to contain all direct dependencies possibly other builders. In the build() function, the builder can access cache in order to resolve depending builders (as ArtifactPromise) in order to create their artifact.

Associated Types

type Artifact: Debug

The artifact type as produced by this builder.

Loading content...

Required methods

fn build(&self, cache: &mut ArtifactResolver) -> Self::Artifact

Produces an artifact using the given ArtifactResolver for resolving dependencies.

Loading content...

Implementors

Loading content...