Cake is a simple, Rustic build tool, which is configured through the advanced macro system of Rust, making it very flexible and expressive.
Features & advantages
- A sane and obvious syntax.
- Fast parallel builds through work-stealing.
- Ahead of time compilation.
- Efficient dependency resolution.
extern crate cake; build!
The build is declared through the
build! macro, which, when invoked, expands to the main function. The
build! macro takes a block, containing a match like syntax:
recipe => instructions
The first denotes the name of the build recipe.
dependencies, delimited by
() and splited by commas, denotes what build recipe this recipe depends on, i.e., requires to build.
A recipe can be failed by returning
Err(()), e.g. using
try!() on a result.
For the extra helper macros, see the rendered docs.