Struct depgraph::DepGraphBuilder [] [src]

pub struct DepGraphBuilder { /* fields omitted */ }

Used to construct a DepGraph

See the module level documentation for an example of how to use this

Methods

impl DepGraphBuilder
[src]

Create a DepGraphBuilder with no rules.

Add a new rule (a file with its dependent files and build instructions).

These can be added in any order, and can be chained.

Add a dependency to all previously added files. Will only affect previously added files, not those added in the future.

This can be used to make all rules depend on build.rs, for example.

Build the make graph and check for errors like cyclic dependencies and duplicate files.